From ed9b0df0576307fe5cb9eb8807eb123f42ddea3b Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 16 Mar 2022 23:53:42 -0700 Subject: [PATCH] fix scaling for objects with repetitions --- masque/pattern.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/masque/pattern.py b/masque/pattern.py index abb310a..4fc8f23 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -713,8 +713,12 @@ class Pattern(LockableImpl, AnnotatableImpl, Mirrorable, metaclass=AutoSlots): for entry in chain(self.shapes, self.subpatterns): entry.offset *= c entry.scale_by(c) + if entry.repetition: + entry.repetition.scale_by(c) for label in self.labels: label.offset *= c + if label.repetition: + label.repetition.scale_by(c) return self def rotate_around(self: P, pivot: ArrayLike, rotation: float) -> P: