From 1a80f6cdd565fb7fbc5b4b98fe4a5f531ad2de19 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Tue, 28 Jul 2020 02:49:30 -0700 Subject: [PATCH] fix vertex array length --- Importer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Importer.cs b/Importer.cs index e921f6f..1b651bd 100644 --- a/Importer.cs +++ b/Importer.cs @@ -60,7 +60,7 @@ namespace Smuggler BufferUsage.WriteOnly ); - var vertices = new VertexPositionNormalTexture[primitive.IndexAccessor.Count]; + var vertices = new VertexPositionNormalTexture[positions.Length]; var indices = new uint[primitive.IndexAccessor.Count]; var indexCounter = 0;