mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed on more occurrence of SkeletonGraphic related import error. Error message was 'Skeleton JSON file not set for SkeletonData asset'. Closes #1226.
This commit is contained in:
parent
52245d55f0
commit
9dad34a387
@ -132,6 +132,9 @@ namespace Spine.Unity.Editor {
|
|||||||
string LastSkinName { get { return EditorPrefs.GetString(LastSkinKey, ""); } }
|
string LastSkinName { get { return EditorPrefs.GetString(LastSkinKey, ""); } }
|
||||||
|
|
||||||
void HandleOnEnablePreview () {
|
void HandleOnEnablePreview () {
|
||||||
|
if (ThisSkeletonDataAsset != null && ThisSkeletonDataAsset.skeletonJSON == null)
|
||||||
|
return;
|
||||||
|
|
||||||
preview.Initialize(this.Repaint, ThisSkeletonDataAsset, LastSkinName);
|
preview.Initialize(this.Repaint, ThisSkeletonDataAsset, LastSkinName);
|
||||||
preview.PlayPauseAnimation(ThisAnimationName, true);
|
preview.PlayPauseAnimation(ThisAnimationName, true);
|
||||||
preview.OnSkinChanged -= HandleOnSkinChanged;
|
preview.OnSkinChanged -= HandleOnSkinChanged;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user