mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Don't die on variation-less xforms
This commit is contained in:
parent
805742d4ce
commit
c5c05d6aa5
@ -228,7 +228,7 @@ def padding_xform(xf, isfinal):
|
||||
if get(xf, 45, 'post_affine', 'spread') > 90:
|
||||
xout['post_affine'] = {'angle': 135, 'spread': 135}
|
||||
|
||||
for k in xf['variations']:
|
||||
for k in xf.get('variations', {}):
|
||||
if k in hole_variations:
|
||||
# Attempt to correct for some known-ugly variations.
|
||||
xout['pre_affine']['angle'] += 180
|
||||
|
Loading…
Reference in New Issue
Block a user