From 5ce618bf4b530a2cc83a35d8af7dd3a13d7ac9b5 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 7 Nov 2015 15:02:28 -0500 Subject: [PATCH] Don't crash if an animation has no FCurves --- korman/properties/modifiers/anim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/korman/properties/modifiers/anim.py b/korman/properties/modifiers/anim.py index 598e1eb..aaa0156 100644 --- a/korman/properties/modifiers/anim.py +++ b/korman/properties/modifiers/anim.py @@ -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):