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...
This commit is contained in:
parent
97fefd3e5d
commit
c964103c1b
Notes:
blender-bot
2023-02-14 19:48:44 +01:00
Referenced by issue #48089, FK animation won't export to FBX
|
@ -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": "",
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue