From f038dd07610c8e6a10a127e831f6fbe0b11f9d03 Mon Sep 17 00:00:00 2001 From: Angad Kambli Date: Sat, 13 Feb 2021 01:24:43 +0530 Subject: [PATCH] glTF: Fix set_joint_i_to_name not using its argument Fixes #45371. --- modules/gltf/gltf_skin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gltf/gltf_skin.cpp b/modules/gltf/gltf_skin.cpp index fd39e4f45a9..5a61e5778c9 100644 --- a/modules/gltf/gltf_skin.cpp +++ b/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(); 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]]; } }