diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-08 15:48:27 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-08 15:49:49 +0300 |
commit | c964103c1bd0698281e6bf8cd8d05f85947c0546 (patch) | |
tree | dd450edb906aa807e7e70e76bfc7dde414ec103f /io_scene_fbx | |
parent | 97fefd3e5d714fc845f6449c9ea47079b415f3f3 (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__.py | 4 | ||||
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 3 |
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() |