From e9c1e134360bb9d8219c2420ad16ecb3fefce7a4 Mon Sep 17 00:00:00 2001 From: notargs Date: Thu, 25 Nov 2021 16:11:08 +0900 Subject: [PATCH] =?UTF-8?q?Colors=E3=81=AEnull=E8=80=83=E6=85=AE=E6=BC=8F?= =?UTF-8?q?=E3=82=8C=E3=82=92=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/MeshIO/MeshContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs index 00190cf58..d213b89e4 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs @@ -142,7 +142,7 @@ namespace UniGLTF var joints = jointsGetter?.Invoke(i) ?? (0, 0, 0, 0); var weights = weightsGetter != null ? NormalizeBoneWeight(weightsGetter(i)) : (0, 0, 0, 0); - var color = colors[i]; + var color = colors != null ? colors[i] : Color.black; _vertices.Add( new MeshVertex( position,