Fix Pattern.scale_by() for labels

Label offsets weren't being scaled.
This commit is contained in:
Jan Petykiewicz 2019-05-15 23:51:51 -07:00
parent 4bd5542ce9
commit a6a3ae797c

View File

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