Преглед изворни кода

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

repsac пре 11 година
родитељ
комит
87c5d2a229
1 измењених фајлова са 1 додато и 1 уклоњено
  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