Fix Pattern.scale_by() for labels

Label offsets weren't being scaled.
lethe/HEAD
Jan Petykiewicz 5 years ago
parent 4bd5542ce9
commit a6a3ae797c

@ -384,6 +384,8 @@ class Pattern:
for entry in self.shapes + self.subpatterns:
entry.offset *= c
entry.scale_by(c)
for entry in self.labels:
entry.offset *= c
return self
def rotate_around(self, pivot: vector2, rotation: float) -> 'Pattern':

Loading…
Cancel
Save