[Bf-extensions-cvs] [c964103] master: Fix T48089: Animation won't export to FBX in case active action is read-only (some NLA usages).
Bastien Montagne
noreply at git.blender.org
Fri Apr 8 14:50:02 CEST 2016
Commit: c964103c1bd0698281e6bf8cd8d05f85947c0546
Author: Bastien Montagne
Date: Fri Apr 8 14:48:27 2016 +0200
Branches: master
https://developer.blender.org/rBAc964103c1bd0698281e6bf8cd8d05f85947c0546
Fix T48089: Animation won't export to FBX in case active action is read-only (some NLA usages).
Skip 'all actions' options for those objects...
===================================================================
M io_scene_fbx/__init__.py
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 65fe695..39e8e7a 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,8 +21,8 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 7, 1),
- "blender": (2, 76, 0),
+ "version": (3, 7, 2),
+ "blender": (2, 77, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
"warning": "",
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index a77b74d..add9d7f 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2060,6 +2060,9 @@ def fbx_animations(scene_data):
if not ob.animation_data:
continue # Do not export animations for objects that are absolutely not animated, see T44386.
+ if ob.animation_data.is_property_readonly('action'):
+ continue # Cannot re-assign 'active action' to this object (usually related to NLA usage, see T48089).
+
# We can't play with animdata and actions and get back to org state easily.
# So we have to add a temp copy of the object to the scene, animate it, and remove it... :/
ob_copy = ob.copy()
More information about the Bf-extensions-cvs
mailing list