From bbfacbc8836cf0406a7a5c5e20e77dcc578f5aa4 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 28 Dec 2015 12:27:37 -0200 Subject: [PATCH] Arch: fixed vanishing windows when host wall is hidden - fixes #1604 --- src/Mod/Arch/ArchComponent.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 96c304dce..b2a0f5ddc 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -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: