Fix mirroring

This commit is contained in:
Jan Petykiewicz 2019-04-13 17:34:01 -07:00
parent bc723d96f3
commit f7ce17c293

View File

@ -407,7 +407,7 @@ def _subpatterns_to_refs(subpatterns: List[SubPattern or GridRepetition]
ref.strans = 0
ref.angle = subpat.rotation * 180 / numpy.pi
mirror_x, mirror_y = subpat.mirrored
if mirror_y and mirror_y:
if mirror_x and mirror_y:
ref.angle += 180
elif mirror_x:
ref.strans = set_bit(ref.strans, 15 - 0, True)