From 2ba2da20fd3ee1343d140c495c588819c3fd00cf Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 14 Jan 2021 19:19:50 +0900 Subject: [PATCH] to `if (used.Add(index))` --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshWithRenderer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshWithRenderer.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshWithRenderer.cs index a6aee551d..927669979 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshWithRenderer.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshWithRenderer.cs @@ -61,9 +61,8 @@ namespace UniGLTF for (int i = 0; i < JointIndexMap.Length; ++i) { var index = JointIndexMap[i]; - if (!used.Contains(index)) + if (used.Add(index)) { - used.Add(index); yield return Mesh.bindposes[i]; } }