Draft: fixed gui bug in trimex

This commit is contained in:
Yorik van Havre 2016-01-14 13:39:24 -02:00
parent 6ed52e479b
commit 9a27d5845f

View File

@ -1132,8 +1132,9 @@ def extrude(obj,vector,solid=False):
newobj.Base = obj
newobj.Dir = vector
newobj.Solid = solid
obj.ViewObject.Visibility = False
formatObject(newobj,obj)
if gui:
obj.ViewObject.Visibility = False
formatObject(newobj,obj)
FreeCAD.ActiveDocument.recompute()
return newobj