From fe4c55008ef40589fc30780c5b6eebd3bcc73822 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 20 Jul 2010 11:00:29 +0000 Subject: [PATCH] Fix #22921: error FBX exporting armature without animation data. --- release/scripts/io/export_fbx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release/scripts/io/export_fbx.py b/release/scripts/io/export_fbx.py index 4911e1d5573..6469a59c8ff 100644 --- a/release/scripts/io/export_fbx.py +++ b/release/scripts/io/export_fbx.py @@ -2940,7 +2940,8 @@ Takes: {''') # end action loop. set original actions # do this after every loop incase actions effect eachother. for my_bone in ob_arms: - my_bone.blenObject.animation_data.action = my_bone.blenAction + if my_bone.blenObject.animation_data: + my_bone.blenObject.animation_data.action = my_bone.blenAction file.write('\n}')