Arch: Fixed non-GUI mode bug

This commit is contained in:
Yorik van Havre
2018-06-26 17:31:13 -03:00
parent 3f2cfa0a7f
commit efdef0f636

View File

@@ -262,7 +262,8 @@ class _ArchMaterial:
d["Description"] = val
if d:
obj.Material = d
if FreeCADGui:
if FreeCAD.GuiUp:
import FreeCADGui
# not sure why this is needed, but it is...
FreeCADGui.ActiveDocument.resetEdit()