Browse Source

Fix Lamp Animation error introduced by #54

The changeset referenced makes the assumption that
`grouped_fcurves[chan]` is a dict. We really can't assume anything about
types this deep inside the animation converter.
pull/66/head
Adam Johnson 8 years ago
parent
commit
1a58ef2ea2
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 5
      korman/exporter/animation.py

5
korman/exporter/animation.py

@ -673,10 +673,11 @@ class AnimationConverter:
continue
for i in range(chan_values):
if i not in chan_keyframes.values:
if i in grouped_fcurves[chan]:
try:
fcurve = grouped_fcurves[chan][i]
except:
chan_keyframes.values[i] = defaults[chan]
else:
fcurve = defaults[chan][i]
if isinstance(fcurve, bpy.types.FCurve):
chan_keyframes.values[i] = fcurve.evaluate(chan_keyframes.frame_num_blender)
else:

Loading…
Cancel
Save