mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[unity] Make SkeletonRenderer invalid when destroying.
This commit is contained in:
parent
50730c7a5c
commit
a96d92d27d
@ -133,7 +133,7 @@ namespace Spine.Unity.Modules {
|
||||
}
|
||||
|
||||
Applied = false;
|
||||
skeletonRenderer.LateUpdate();
|
||||
if (skeletonRenderer.valid) skeletonRenderer.LateUpdate();
|
||||
}
|
||||
|
||||
public void GetTexture () {
|
||||
|
||||
@ -147,6 +147,7 @@ namespace Spine.Unity {
|
||||
|
||||
void OnDestroy () {
|
||||
rendererBuffers.Dispose();
|
||||
valid = false;
|
||||
}
|
||||
|
||||
public virtual void ClearState () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user