From d771c1fe0edeb8ac2a10c2d3e86f3e13eb23934f Mon Sep 17 00:00:00 2001 From: hiroj Date: Thu, 18 Mar 2021 18:22:55 +0900 Subject: [PATCH] fix uploadMeshData --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs index fda28c4c0..9eef118cb 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshImporter.cs @@ -593,8 +593,6 @@ namespace UniGLTF mesh.RecalculateNormals(); } - mesh.UploadMeshData(false); - return (mesh, recalculateTangents); } @@ -650,6 +648,9 @@ namespace UniGLTF BuildBlendShape(mesh, meshContext, blendShape, emptyVertices); } } + + mesh.UploadMeshData(false); + return result; } @@ -680,6 +681,8 @@ namespace UniGLTF } } + mesh.UploadMeshData(false); + yield return result; } }