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;