This commit is contained in:
ousttrue
2021-12-27 20:00:39 +09:00
parent 8e5479772d
commit c55d2cc851

View File

@@ -364,7 +364,7 @@ namespace UniGLTF
{
foreach (var prim in mesh.primitives)
{
if (HasVertexColor(prim.attributes))
if (prim.material == materialIndex && HasVertexColor(prim.attributes))
{
return true;
}