to if (used.Add(index))

This commit is contained in:
ousttrue 2021-01-14 19:19:50 +09:00
parent a3fbd81c66
commit 2ba2da20fd

View File

@ -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];
}
}