Arch: Fixed bugs when working without GUI

This commit is contained in:
Yorik van Havre
2014-07-17 19:58:22 -03:00
parent 0fda229597
commit eea27448e9
13 changed files with 63 additions and 42 deletions

View File

@@ -40,7 +40,8 @@ def makeSpace(objects=None,name=translate("Arch","Space")):
selection objects as got from getSelectionEx(), or a list of tuples (object, subobjectname)"""
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name)
_Space(obj)
_ViewProviderSpace(obj.ViewObject)
if FreeCAD.GuiUp:
_ViewProviderSpace(obj.ViewObject)
if objects:
if not isinstance(objects,list):
objects = [objects]