Arch: small bugfix in IFC importer

This commit is contained in:
Yorik van Havre 2015-05-15 11:27:15 -03:00
parent 96e77ab5bf
commit 25da93e2ea

View File

@ -517,7 +517,7 @@ def insert(filename,docname,skip=[],only=[],root=None):
obj.IfcAttributes = a
# color
if FreeCAD.GuiUp and (pid in colors):
if FreeCAD.GuiUp and (pid in colors) and hasattr(obj.ViewObject,"ShapeColor"):
if DEBUG: print " setting color: ",colors[pid]
obj.ViewObject.ShapeColor = colors[pid]