Arch: fixed vanishing windows when host wall is hidden - fixes #1604

This commit is contained in:
Yorik van Havre 2015-12-28 12:27:37 -02:00
parent 83954da5cf
commit bbfacbc883

View File

@ -697,9 +697,11 @@ class ViewProviderComponent:
def onChanged(self,vobj,prop):
#print vobj.Object.Name, " : changing ",prop
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
#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 hasattr(vobj.Object,"CloneOf"):
if vobj.Object.CloneOf: