[unity] Fix MeshGenerator unnecessarily disposing buffer objects.

This commit is contained in:
pharan 2018-10-18 20:55:31 +08:00 committed by GitHub
parent 339a76c75e
commit 89e85884df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,7 @@ namespace Spine.Unity {
public void AddSubmesh (SubmeshInstruction instruction, bool updateTriangles = true) {
var settings = this.settings;
if (submeshes.Count - 1 < submeshIndex) {
if (submeshes.Items.Length - 1 < submeshIndex) {
submeshes.Resize(submeshIndex + 1);
}