4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-15 10:54:18 +00:00

Don't crash if an animation has no FCurves

This commit is contained in:
2015-11-07 15:02:28 -05:00
parent d814d4343a
commit 5ce618bf4b

View File

@ -27,6 +27,8 @@ def _convert_frame_time(frame_num):
def _get_blender_action(bo):
if bo.animation_data is None or bo.animation_data.action is None:
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
class PlasmaAnimationModifier(PlasmaModifierProperties):