Fix out-of-range angles

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

View File

@ -414,6 +414,7 @@ def _subpatterns_to_refs(subpatterns: List[SubPattern or GridRepetition]
elif mirror_y: elif mirror_y:
ref.angle += 180 ref.angle += 180
ref.strans = set_bit(ref.strans, 15 - 0, True) ref.strans = set_bit(ref.strans, 15 - 0, True)
ref.angle %= 360
ref.mag = subpat.scale ref.mag = subpat.scale
refs.append(ref) refs.append(ref)