Fix Pattern.scale_by() for labels
Label offsets weren't being scaled.
This commit is contained in:
parent
4bd5542ce9
commit
a6a3ae797c
1 changed files with 2 additions and 0 deletions
|
|
@ -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':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue