fixup mirroring for subpatterns

This commit is contained in:
Jan Petykiewicz 2019-12-05 23:18:18 -08:00
commit f3669f2dfd
3 changed files with 8 additions and 2 deletions

View file

@ -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: