blender exporter breaks when parent contains keyframe animation and child does not
@@ -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:
fcurves = fcurves.action.fcurves
objName = obj.name