From 5fcb77eb1a6c3c8ddbb1180e3619a568d0705722 Mon Sep 17 00:00:00 2001 From: pharan Date: Tue, 30 May 2017 19:20:39 +0800 Subject: [PATCH] [unity] Match pre-initialized buffer size of submesh indices. --- spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs b/spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs index 162427990..978b9b9ee 100644 --- a/spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs +++ b/spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs @@ -110,9 +110,9 @@ namespace Spine.Unity { const float BoundsMinDefault = float.MaxValue; const float BoundsMaxDefault = float.MinValue; - [NonSerialized] readonly ExposedList vertexBuffer = new ExposedList(); - [NonSerialized] readonly ExposedList uvBuffer = new ExposedList(); - [NonSerialized] readonly ExposedList colorBuffer = new ExposedList(); + [NonSerialized] readonly ExposedList vertexBuffer = new ExposedList(4); + [NonSerialized] readonly ExposedList uvBuffer = new ExposedList(4); + [NonSerialized] readonly ExposedList colorBuffer = new ExposedList(4); [NonSerialized] readonly ExposedList> submeshes = new ExposedList> { new ExposedList(6) }; // start with 1 submesh. [NonSerialized] Vector2 meshBoundsMin, meshBoundsMax;