fixup mirroring for subpatterns
This commit is contained in:
parent
4bc51f765f
commit
f3669f2dfd
3 changed files with 8 additions and 2 deletions
|
|
@ -281,6 +281,10 @@ class GridRepetition:
|
|||
:return: self
|
||||
"""
|
||||
self.mirrored[axis] = not self.mirrored[axis]
|
||||
self.rotation *= -1
|
||||
self.a_vector[axis] *= -1
|
||||
if self.b_vector is not None:
|
||||
self.b_vector[axis] *= -1
|
||||
return self
|
||||
|
||||
def get_bounds(self) -> numpy.ndarray or None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue