Arch: Equipments now take the diffuse color of their base object on creation

This commit is contained in:
Yorik van Havre 2015-01-01 19:06:00 -02:00
parent 2680395ede
commit 60b648b053

View File

@ -181,6 +181,9 @@ class _CommandEquipment:
FreeCADGui.doCommand("Arch.makeEquipment(FreeCAD.ActiveDocument." + base + ")")
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
# get diffuse color info from base object
if hasattr(s[0].ViewObject,"DiffuseColor"):
FreeCADGui.doCommand("FreeCAD.ActiveDocument.Objects[-1].ViewObject.DiffuseColor = FreeCAD.ActiveDocument." + base + ".ViewObject.DiffuseColor")
return