From da96a735512ad8d20b44c78c79acea0bcd6d474b Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 17 Jan 2022 16:22:16 +0100 Subject: [PATCH] Arch: Fix ArchWall onBeforeChange The onBeforeChange method in the ArchWall class did not call onBeforeChange from its parent class. This blocked the 'MoveWithHost' behavior of windows placed in walls. --- src/Mod/Arch/ArchWall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 1335884b41..6d2b513f26 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -988,6 +988,8 @@ class _Wall(ArchComponent.Component): If "Length" has changed, record the old length so that .onChanged() can be sure that the base needs to be changed. + Also call ArchComponent.Component.onBeforeChange(). + Parameters ---------- prop: string @@ -996,6 +998,7 @@ class _Wall(ArchComponent.Component): if prop == "Length": self.oldLength = obj.Length.Value + ArchComponent.Component.onBeforeChange(self,obj,prop) def onChanged(self, obj, prop): """Method called when the object has a property changed.