[unity] Fix mesh generator submesh buffer starting too large.

This commit is contained in:
pharan 2018-11-15 11:28:35 +08:00 committed by GitHub
parent 558a4b5e14
commit fdb7902ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,10 @@ namespace Spine.Unity {
[NonSerialized] ExposedList<Vector2> uv3;
#endregion
public MeshGenerator () {
submeshes.TrimExcess();
}
public int VertexCount { get { return vertexBuffer.Count; } }
public MeshGeneratorBuffers Buffers {