mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Handle SkeletonGraphic with invalid SkeletonDataAsset.
This commit is contained in:
parent
594e287721
commit
e601f889b7
@ -59,7 +59,8 @@ namespace Spine.Unity {
|
||||
if (this.IsValid) {
|
||||
if (skeletonDataAsset == null) {
|
||||
Clear();
|
||||
startingAnimation = "";
|
||||
} else if (skeletonDataAsset.skeletonJSON == null) {
|
||||
Clear();
|
||||
} else if (skeletonDataAsset.GetSkeletonData(true) != skeleton.data) {
|
||||
Clear();
|
||||
Initialize(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user