Arch: Fixed buggy import/export of 2D objects to IFC

This commit is contained in:
Yorik van Havre
2018-11-09 16:56:59 -02:00
parent 3d8b815834
commit a8fda8df0b
5 changed files with 156 additions and 79 deletions

View File

@@ -763,13 +763,12 @@ class ViewProviderComponent:
def onChanged(self,vobj,prop):
#print(vobj.Object.Name, " : changing ",prop)
if prop == "Visibility":
#if prop == "Visibility":
#for obj in vobj.Object.Additions+vobj.Object.Subtractions:
# if (Draft.getType(obj) == "Window") or (Draft.isClone(obj,"Window",True)):
# obj.ViewObject.Visibility = vobj.Visibility
# this would now hide all previous windows... Not the desired behaviour anymore.
pass
elif prop == "DiffuseColor":
if prop == "DiffuseColor":
if hasattr(vobj.Object,"CloneOf"):
if vobj.Object.CloneOf:
if len(vobj.Object.CloneOf.ViewObject.DiffuseColor) > 1: