浏览代码

Merge pull request #48913 from lyuma/gltf_named_binds_dedup

Fix incorrect skin deduplication when using named binds
Rémi Verschelde 4 年之前
父节点
当前提交
82f688ce9b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules/gltf/gltf_document.cpp

+ 3 - 0
modules/gltf/gltf_document.cpp

@@ -4390,6 +4390,9 @@ bool GLTFDocument::_skins_are_same(const Ref<Skin> skin_a, const Ref<Skin> skin_
 		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);