Browse Source

Fixed the bone parent index to derive the index value from the bone mapping

repsac 10 years ago
parent
commit
87c5d2a229
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/exporters/blender/addons/io_three/exporter/api/mesh.py

+ 1 - 1
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -51,7 +51,7 @@ def bones(mesh):
             index = 0
             for parent in armature.data.bones:
                 if parent.name == bone.parent.name:
-                    bone_index = index
+                    bone_index = bone_map.get(index)
                 index += 1
 
         bone_world_pos = armature.matrix_world * bone_pos