From ab6b84434801c6ebab11d94d3a704ae12cbc8339 Mon Sep 17 00:00:00 2001 From: Christian Petry Date: Fri, 26 Jun 2026 16:05:34 +0200 Subject: [PATCH] Fixed #2808 - on empty submeshes still continue to process all remaining (valid) subMeshes --- .../UniGLTF/IO/MeshIO/MeshExporter_SharedVertexBuffer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExporter_SharedVertexBuffer.cs b/Packages/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExporter_SharedVertexBuffer.cs index b18e1fc855..f2e7f00711 100644 --- a/Packages/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExporter_SharedVertexBuffer.cs +++ b/Packages/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExporter_SharedVertexBuffer.cs @@ -180,7 +180,8 @@ private static glTFMesh CreateGLTFMesh(glTFAttributes attributes, ExportingGltfD if (submeshIndices.Length == 0) { // https://github.com/vrm-c/UniVRM/issues/664 - break; + // Skip empty submesh and continue with remaining submeshes + continue; } else if (submeshIndices.Length < 3) {