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
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')
-rw-r--r--io_scene_fbx/__init__.py2
-rw-r--r--io_scene_fbx/import_fbx.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index b737cef0..2782353f 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (4, 17, 0),
+ "version": (4, 17, 1),
"blender": (2, 81, 6),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
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()