Skip to content

Commit

Permalink
update orientation transform when joining a collection
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
sophiamaedler committed Dec 19, 2024
1 parent d29da78 commit bc0e22a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lmd/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc0e22a

Please sign in to comment.