浏览代码

Merge pull request #45955 from angad-k/fix-set-joint-i-to-name

fix set_joint_i_to_name to use the provided argument
Rémi Verschelde 4 年之前
父节点
当前提交
99fc96e7b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gltf/gltf_skin.cpp

+ 1 - 1
modules/gltf/gltf_skin.cpp

@@ -142,7 +142,7 @@ void GLTFSkin::set_joint_i_to_name(Dictionary p_joint_i_to_name) {
 	joint_i_to_name = Map<int, StringName>();
 	joint_i_to_name = Map<int, StringName>();
 	Array keys = p_joint_i_to_name.keys();
 	Array keys = p_joint_i_to_name.keys();
 	for (int i = 0; i < keys.size(); i++) {
 	for (int i = 0; i < keys.size(); i++) {
-		joint_i_to_name[keys[i]] = joint_i_to_name[keys[i]];
+		joint_i_to_name[keys[i]] = p_joint_i_to_name[keys[i]];
 	}
 	}
 }
 }