Arch: small bugfix in IFC importer
This commit is contained in:
parent
96e77ab5bf
commit
25da93e2ea
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user