소스 검색

Fix incorrect skin deduplication when using named binds

(cherry picked from commit 60f620411e337635ecbc4628e3df81f11ac25760)
Lyuma 4 년 전
부모
커밋
a0b8c24d92
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/import/editor_scene_importer_gltf.cpp

+ 3 - 0
editor/import/editor_scene_importer_gltf.cpp

@@ -2359,6 +2359,9 @@ bool EditorSceneImporterGLTF::_skins_are_same(const Ref<Skin> &skin_a, const Ref
 		if (skin_a->get_bind_bone(i) != skin_b->get_bind_bone(i)) {
 			return false;
 		}
+		if (skin_a->get_bind_name(i) != skin_b->get_bind_name(i)) {
+			return false;
+		}
 
 		Transform a_xform = skin_a->get_bind_pose(i);
 		Transform b_xform = skin_b->get_bind_pose(i);