Skip to content

Commit

Permalink
Arch: Fixed non-GUI mode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 26, 2018
1 parent 3f2cfa0 commit efdef0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Arch/ArchMaterial.py
Expand Up @@ -262,7 +262,8 @@ def onChanged(self,obj,prop):
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()

Expand Down

0 comments on commit efdef0f

Please sign in to comment.