glTF: Fix set_joint_i_to_name not using its argument

Fixes #45371.
This commit is contained in:
Angad Kambli 2021-02-13 01:24:43 +05:30
parent e9a25b8552
commit f038dd0761

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