mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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) {
|
public void AddSubmesh (SubmeshInstruction instruction, bool updateTriangles = true) {
|
||||||
var settings = this.settings;
|
var settings = this.settings;
|
||||||
|
|
||||||
if (submeshes.Count - 1 < submeshIndex) {
|
if (submeshes.Items.Length - 1 < submeshIndex) {
|
||||||
submeshes.Resize(submeshIndex + 1);
|
submeshes.Resize(submeshIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user