From 199c35ca464bb50945e6665c3ddb64cd74f40c26 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 18 Mar 2022 13:33:03 +0100 Subject: [PATCH] Arch: When inverting hinge position, keep opening direction Previously, just the hinge position was changed, with the rotation direction kept unchanged, which would make the door open towards the other side of the wall. This also inverts the rotation direction, so the door still opens toward the same side of the wall, which is more intuitively what you would expect. --- src/Mod/Arch/ArchWindow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index f27a6c9eab..56799c8db9 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -1232,6 +1232,9 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent): pairs = [["Edge6","Edge8"],["Edge5","Edge7"]] self.invertPairs(pairs) + # Also invert opening direction, so the door still opens towards + # the same side of the wall + self.invertOpening() def invertPairs(self,pairs):