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>2019-09-25 18:45:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-09-25 18:45:11 +0300
commit6eb9c11fe04454601065d6e93029622b88eb69c8 (patch)
tree79b4f2107651b1b357a225d4f8a9ac8803d4b60e /io_scene_fbx/import_fbx.py
parent71cf3711881416223b047ec6e8314d8b71122496 (diff)
Fix T70244: FBX bug import when having children rigs of parent one.
Note that such complex rig features remains barely supported anyway, such complex setup will require some manual editing after import...
Diffstat (limited to 'io_scene_fbx/import_fbx.py')
-rw-r--r--io_scene_fbx/import_fbx.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 5556f968..27e46076 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1898,7 +1898,11 @@ class FbxImportHelperNode:
meshes = set()
for child in self.children:
- child.collect_skeleton_meshes(meshes)
+ # Children meshes may be linked to children armatures, in which case we do not want to link them
+ # to a parent one. See T70244.
+ child.collect_armature_meshes()
+ if not child.meshes:
+ child.collect_skeleton_meshes(meshes)
for m in meshes:
old_matrix = m.matrix
m.matrix = armature_matrix_inv @ m.get_world_matrix()