fix scaling for objects with repetitions

nolock
Jan Petykiewicz 2 years ago
parent a4aa50d814
commit ed9b0df057

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

Loading…
Cancel
Save