Browse Source

Don't crash if an animation has no FCurves

pull/23/head
Adam Johnson 9 years ago
parent
commit
5ce618bf4b
  1. 2
      korman/properties/modifiers/anim.py

2
korman/properties/modifiers/anim.py

@ -27,6 +27,8 @@ def _convert_frame_time(frame_num):
def _get_blender_action(bo): def _get_blender_action(bo):
if bo.animation_data is None or bo.animation_data.action is None: if bo.animation_data is None or bo.animation_data.action is None:
raise ExportError("Object '{}' has no Action to export".format(bo.name)) raise ExportError("Object '{}' has no Action to export".format(bo.name))
if not bo.animation_data.action.fcurves:
raise ExportError("Object '{}' is animated but has no FCurves".format(bo.name))
return bo.animation_data.action return bo.animation_data.action
class PlasmaAnimationModifier(PlasmaModifierProperties): class PlasmaAnimationModifier(PlasmaModifierProperties):

Loading…
Cancel
Save