mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fix MeshGenerator unnecessarily disposing buffer objects.
This commit is contained in:
parent
339a76c75e
commit
89e85884df
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user