Arch: Fixed creation of Spaces in no-GUI mode

This commit is contained in:
Yorik van Havre
2017-12-13 11:21:33 -02:00
parent 2cf8e0ffd6
commit 28240a806e

View File

@@ -188,7 +188,8 @@ def makeSpace(objects=None,baseobj=None,name="Space"):
objects = [objects]
if len(objects) == 1:
obj.Base = objects[0]
objects[0].ViewObject.hide()
if FreeCAD.GuiUp:
objects[0].ViewObject.hide()
else:
obj.Proxy.addSubobjects(obj,objects)
return obj