Draft: fixed gui bug in trimex

This commit is contained in:
Yorik van Havre
2016-01-14 13:39:24 -02:00
parent a0e7780fbd
commit 2b674fd2c2

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