Skip to content

Commit

Permalink
* fix for ILiteAnimator IndexOutOfRange crash
Browse files Browse the repository at this point in the history
  • Loading branch information
BeauPrime committed Nov 22, 2024
1 parent a5fd440 commit 57c82f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/FieldDay/UI/Animation/FadeGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public void Show() {
if (!CurrentState) {
CurrentState = true;
Game.Animation.CancelAnimation(ref CurrentHandle);
Game.Animation.AddLiteAnimator(FadeInAnimator, this, 0);
CurrentHandle = Game.Animation.AddLiteAnimator(FadeInAnimator, this, 0);
}
}

public void Hide() {
if (CurrentState) {
CurrentState = false;
Game.Animation.CancelAnimation(ref CurrentHandle);
Game.Animation.AddLiteAnimator(FadeOutAnimator, this, 0);
CurrentHandle = Game.Animation.AddLiteAnimator(FadeOutAnimator, this, 0);
}
}

Expand Down
2 changes: 2 additions & 0 deletions Assets/FieldDay/World/Animation/AnimationMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ private void HandleLiteUpdate(GameLoopPhase phase, float deltaTime) {
LiteAnimatorRecord animRecord = liteAnimators.PopFront();
if (animRecord.Animator.UpdateAnimation(animRecord.Target, ref animRecord.State, deltaTime)) {
liteAnimators.PushBack(animRecord);
} else {
m_HandleIdGenerator.Free(animRecord.Handle);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"com.beauprime.beauroutine": "0.11.1",
"com.beauprime.beauroutine-extensions": "0.1.2",
"com.beauprime.beauroutine-spline": "0.1.1",
"com.beauprime.beauutil": "0.10.11",
"com.beauprime.beauutil": "0.10.12",
"com.beauprime.leaf": "0.3.14",
"com.beauprime.tinyil-mono": "0.2.1",
"com.prenominal.realtimecsg": "https://github.com/LogicalError/realtime-CSG-for-unity.git",
Expand Down
2 changes: 1 addition & 1 deletion Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"url": "https://package.openupm.com"
},
"com.beauprime.beauutil": {
"version": "0.10.11",
"version": "0.10.12",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand Down

0 comments on commit 57c82f4

Please sign in to comment.