mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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 (this.IsValid) {
|
||||||
if (skeletonDataAsset == null) {
|
if (skeletonDataAsset == null) {
|
||||||
Clear();
|
Clear();
|
||||||
startingAnimation = "";
|
} else if (skeletonDataAsset.skeletonJSON == null) {
|
||||||
|
Clear();
|
||||||
} else if (skeletonDataAsset.GetSkeletonData(true) != skeleton.data) {
|
} else if (skeletonDataAsset.GetSkeletonData(true) != skeleton.data) {
|
||||||
Clear();
|
Clear();
|
||||||
Initialize(true);
|
Initialize(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user