Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-04-08 15:48:27 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-04-08 15:49:49 +0300
commitc964103c1bd0698281e6bf8cd8d05f85947c0546 (patch)
treedd450edb906aa807e7e70e76bfc7dde414ec103f /io_scene_fbx
parent97fefd3e5d714fc845f6449c9ea47079b415f3f3 (diff)
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...
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/__init__.py4
-rw-r--r--io_scene_fbx/export_fbx_bin.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 65fe695f..39e8e7a9 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 a77b74db..add9d7fd 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()