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-05-01 18:29:17 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-05-01 18:36:52 +0300
commit184e74fbe76d105919689b24e2dbd80aaac8f588 (patch)
tree8059f7861d672e456a8ec5b1fcecca39fe707a71 /io_scene_fbx/export_fbx_bin.py
parent1b1aaf3e250e61768c8f7e8695392bbd3d86933e (diff)
Fix T48322: Proxy Armature Animations are not exported to FBX.
This is the 'proxy case', only fixable one for now (linked object have un-editable animdata.action, so we cannot export animations for them for now). Issue was simply that armature modifier of linked mesh object still 'points' to linked armature object, and not to its local proxy. Fix is luckily easy (for once)!
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r--io_scene_fbx/export_fbx_bin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index add9d7fd..98cc265d 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1794,10 +1794,10 @@ def fbx_skeleton_from_armature(scene, settings, arm_obj, objects, data_meshes,
# Always handled by an Armature modifier...
found = False
for mod in ob_obj.bdata.modifiers:
- if mod.type not in {'ARMATURE'}:
+ if mod.type not in {'ARMATURE'} or not mod.object:
continue
# We only support vertex groups binding method, not bone envelopes one!
- if mod.object == arm_obj.bdata and mod.use_vertex_groups:
+ if mod.object in {arm_obj.bdata, arm_obj.bdata.proxy} and mod.use_vertex_groups:
found = True
break