From c55d2cc851cf0f2d8905e95af3d85fa365d50b72 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 27 Dec 2021 20:00:39 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs index 2a6227ad4..19d720102 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs @@ -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; }