From abfebe11334de8aaa6eb52d06194419b6007e048 Mon Sep 17 00:00:00 2001 From: hiroj Date: Thu, 18 Mar 2021 18:17:02 +0900 Subject: [PATCH] fix_uploadMeshData --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs index 73373a4fb2..2487987379 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs @@ -638,8 +638,6 @@ public MeshContext ReadMesh(ImporterContext ctx, int meshIndex, IAxisInverter in mesh.RecalculateNormals(); } - mesh.UploadMeshData(false); - return (mesh, recalculateTangents); } @@ -700,6 +698,8 @@ public static async Task BuildMeshAsync(IAwaitCaller awaitCal } } + mesh.UploadMeshData(false); + return result; } }