From ff65e84aded868fdb402570ecf63121bf512bb42 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 13 Mar 2018 11:42:40 -0300 Subject: [PATCH] Arch: Better fix of windows host system --- src/Mod/Arch/ArchWindow.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index e8bfe9d334..e42486477a 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -651,7 +651,7 @@ class _Window(ArchComponent.Component): def onChanged(self,obj,prop): self.hideSubobjects(obj,prop) if not "Restore" in obj.State: - if prop in ["Base","WindowParts","Placement","HoleDepth","Height","Width"]: + if prop in ["Base","WindowParts","Placement","HoleDepth","Height","Width","Hosts"]: # anti-recursive loops, bc the base sketch will touch the Placement all the time ok = True if prop == "Placement": @@ -659,6 +659,11 @@ class _Window(ArchComponent.Component): if self.Placement == obj.Placement: ok = False self.Placement = FreeCAD.Placement(obj.Placement) + elif prop == "Hosts": + if hasattr(self,"Hosts"): + if self.Hosts == obj.Hosts: + ok = False + self.Hosts = obj.Hosts if ok and hasattr(obj,"Hosts"): for host in obj.Hosts: # mark host to recompute so it can detect this object