Fix mirror axis in Pattern.mirror()
This commit is contained in:
parent
70f3ea9304
commit
79ac6a59e4
@ -359,7 +359,7 @@ class Pattern:
|
|||||||
:return: self
|
:return: self
|
||||||
"""
|
"""
|
||||||
for entry in self.shapes + self.subpatterns:
|
for entry in self.shapes + self.subpatterns:
|
||||||
entry.offset[axis] *= -1
|
entry.offset[axis - 1] *= -1
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def mirror_elements(self, axis: int) -> 'Pattern':
|
def mirror_elements(self, axis: int) -> 'Pattern':
|
||||||
|
Loading…
Reference in New Issue
Block a user