From 50ca54cc7eb73dad168eb3c018e6ffd0042c3a89 Mon Sep 17 00:00:00 2001 From: Matt Hirsch Date: Wed, 3 Feb 2016 16:42:52 -0500 Subject: [PATCH] objects with parents containing keyframe animations, but which don't themselves contain keyframe animations, break the exporter --- .../exporters/blender/addons/io_three/exporter/api/object.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/exporters/blender/addons/io_three/exporter/api/object.py b/utils/exporters/blender/addons/io_three/exporter/api/object.py index ddd8822f20..8fe9dea23a 100644 --- a/utils/exporters/blender/addons/io_three/exporter/api/object.py +++ b/utils/exporters/blender/addons/io_three/exporter/api/object.py @@ -174,9 +174,13 @@ EXPORTED_TRACKABLE_FIELDS = [ "location", "scale", "rotation_quaternion" ] @_object def animated_xform(obj, options): + if obj.animation_data is None: + return [] fcurves = obj.animation_data if not fcurves: return [] + if fcurves.action is None: + return [] fcurves = fcurves.action.fcurves objName = obj.name -- GitLab