From bc0e22ae12c0683a3b012da4fe3200514d7117c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sophia=20M=C3=A4dler?= <15019107+sophiamaedler@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:52:08 +0100 Subject: [PATCH] update orientation transform when joining a collection fixes #20 --- src/lmd/lib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lmd/lib.py b/src/lmd/lib.py index 7ed7aa8..c247619 100755 --- a/src/lmd/lib.py +++ b/src/lmd/lib.py @@ -256,6 +256,11 @@ def join(self, collection: Collection): Returns: returns self """ + if self.orientation_transform != collection.orientation_transform: + collection.orientation_transform = self.orientation_transform + + for shape in collection.shapes: + shape.orientation_transform = self.orientation_transform self.shapes += collection.shapes return self