mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
[unity] Fix some OnValidate behavior.
This commit is contained in:
parent
08451f2a8d
commit
017b65198f
@ -80,14 +80,16 @@ namespace Spine.Unity {
|
||||
|
||||
}
|
||||
|
||||
// Only provide visual feedback to inspector changes in Unity Editor Edit mode.
|
||||
if (!Application.isPlaying) {
|
||||
skeleton.flipX = this.initialFlipX;
|
||||
skeleton.flipY = this.initialFlipY;
|
||||
|
||||
skeleton.SetToSetupPose();
|
||||
if (!string.IsNullOrEmpty(startingAnimation))
|
||||
skeleton.PoseWithAnimation(startingAnimation, 0f, false);
|
||||
}
|
||||
|
||||
skeleton.SetToSetupPose();
|
||||
if (!string.IsNullOrEmpty(startingAnimation))
|
||||
skeleton.PoseWithAnimation(startingAnimation, 0f, false);
|
||||
}
|
||||
} else {
|
||||
if (skeletonDataAsset != null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user