From 6597c487d245b9bcc83f5b491e719eb3f4f39d25 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 27 Oct 2021 15:50:33 +0900 Subject: [PATCH] =?UTF-8?q?=E7=A8=80=E3=81=AB=E7=84=A1=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Runtime/Migration/MeshUpdater.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs index 86b6c5f66..aac291e6d 100644 --- a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs +++ b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs @@ -135,10 +135,10 @@ namespace UniVRM10 var subIndices = indices.Slice(submesh.Offset, submesh.DrawCount); gltfPrim.indices = AddAccessor(subIndices); gltfPrim.attributes.POSITION = position.Value; - gltfPrim.attributes.NORMAL = normal.Value; + gltfPrim.attributes.NORMAL = normal.GetValueOrDefault(-1); // たぶん、ありえる gltfPrim.attributes.TANGENT = -1; gltfPrim.attributes.COLOR_0 = color.GetValueOrDefault(-1); - gltfPrim.attributes.TEXCOORD_0 = uv.Value; + gltfPrim.attributes.TEXCOORD_0 = uv.GetValueOrDefault(-1); // ありえる? gltfPrim.attributes.TEXCOORD_1 = -1; gltfPrim.attributes.WEIGHTS_0 = weights.GetValueOrDefault(-1); gltfPrim.attributes.JOINTS_0 = joints.GetValueOrDefault(-1);