Fix incorrect skin deduplication when using named binds

(cherry picked from commit 60f620411e)
This commit is contained in:
Lyuma 2021-05-20 20:26:11 -07:00 committed by Rémi Verschelde
parent ec6a3a0d0c
commit a0b8c24d92
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);