Skip to content

Commit

Permalink
Arch: Added message to inform user of workaround against non-editable…
Browse files Browse the repository at this point in the history
… wall baselines
  • Loading branch information
yorikvanhavre committed Jul 8, 2019
1 parent 802b3b6 commit 3857711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Arch/ArchWall.py
Expand Up @@ -761,7 +761,10 @@ def onChanged(self,obj,prop):
#print "modifying p2"
obj.Base.End = p2
elif Draft.getType(obj.Base) == "Sketch":
obj.Base.movePoint(0,2,p2,0)
try:
obj.Base.movePoint(0,2,p2,0)
except:
print("Debug: The base sketch of this wall could not be changed, because the sketch has not been edited yet in this session (this is a bug in FreeCAD). Try entering and exiting edit mode in this sketch first, and then changing the wall length should work.")
else:
FreeCAD.Console.PrintError(translate("Arch","Error: Unable to modify the base object of this wall")+"\n")
self.hideSubobjects(obj,prop)
Expand Down

0 comments on commit 3857711

Please sign in to comment.