Преглед на файлове

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