mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
Fixed incorrect overwrite check.
This commit is contained in:
parent
be38f3e1d3
commit
ef92fc3843
@ -130,14 +130,14 @@ public class SkeletonAnimation : SkeletonRenderer, ISkeletonAnimation {
|
||||
#endregion
|
||||
|
||||
public override void Initialize (bool overwrite) {
|
||||
if (valid && !overwrite)
|
||||
return;
|
||||
|
||||
base.Initialize(overwrite);
|
||||
|
||||
if (!valid)
|
||||
return;
|
||||
|
||||
if (!overwrite)
|
||||
return;
|
||||
|
||||
state = new Spine.AnimationState(skeletonDataAsset.GetAnimationStateData());
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
||||
@ -46,14 +46,14 @@ public class SkeletonAnimator : SkeletonRenderer, ISkeletonAnimation {
|
||||
float lastTime;
|
||||
|
||||
public override void Initialize (bool overwrite) {
|
||||
if (valid && !overwrite)
|
||||
return;
|
||||
|
||||
base.Initialize(overwrite);
|
||||
|
||||
if (!valid)
|
||||
return;
|
||||
|
||||
if (!overwrite)
|
||||
return;
|
||||
|
||||
animationTable.Clear();
|
||||
clipNameHashCodeTable.Clear();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user