Browse Source

glTF: Fix set_joint_i_to_name not using its argument

Fixes #45371.
Angad Kambli 4 years ago
parent
commit
f038dd0761
1 changed files with 1 additions and 1 deletions
  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>();
 	Array keys = p_joint_i_to_name.keys();
 	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]];
 	}
 }