fix scaling for objects with repetitions

This commit is contained in:
Jan Petykiewicz 2022-03-16 23:53:42 -07:00
parent a4aa50d814
commit ed9b0df057

View File

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