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.
This commit is contained in:
Matthijs Kooijman
2022-03-18 13:33:03 +01:00
parent 218f58b4f9
commit 199c35ca46

View File

@@ -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):