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

fix set_joint_i_to_name to use the provided argument
This commit is contained in:
Rémi Verschelde 2021-02-17 13:25:31 +01:00 committed by GitHub
commit 99fc96e7b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]];
}
}