Arch: Support of IfcBuildingElement and IfcPropertySets in ifc import/export

This commit is contained in:
Yorik van Havre
2018-07-04 14:49:31 -03:00
parent a790510d8e
commit 2f6fe25971
6 changed files with 318 additions and 159 deletions

View File

@@ -370,7 +370,8 @@ class ViewProviderBuildingPart:
c = o.ViewObject.ShapeColor[:3]+(obj.ViewObject.Transparency/100.0,)
for i in range(len(o.Shape.Faces)):
cols.append(c)
obj.ViewObject.DiffuseColor = cols
if hasattr(obj.ViewObject,"DiffuseColor"):
obj.ViewObject.DiffuseColor = cols
def onChanged(self,vobj,prop):