mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +08:00
Merge pull request #28339 from bdach/fix-legacy-body-piece-animation-not-resetting-sometimes
Fix legacy mania note body animation not resetting sometimes
This commit is contained in:
commit
fa1da193ff
@ -140,10 +140,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
|||||||
private void onIsHittingChanged(ValueChangedEvent<bool> isHitting)
|
private void onIsHittingChanged(ValueChangedEvent<bool> isHitting)
|
||||||
{
|
{
|
||||||
if (bodySprite is TextureAnimation bodyAnimation)
|
if (bodySprite is TextureAnimation bodyAnimation)
|
||||||
{
|
|
||||||
bodyAnimation.GotoFrame(0);
|
|
||||||
bodyAnimation.IsPlaying = isHitting.NewValue;
|
bodyAnimation.IsPlaying = isHitting.NewValue;
|
||||||
}
|
|
||||||
|
|
||||||
if (lightContainer == null)
|
if (lightContainer == null)
|
||||||
return;
|
return;
|
||||||
@ -219,6 +216,9 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
if (!isHitting.Value)
|
||||||
|
(bodySprite as TextureAnimation)?.GotoFrame(0);
|
||||||
|
|
||||||
if (holdNote.Body.HasHoldBreak)
|
if (holdNote.Body.HasHoldBreak)
|
||||||
missFadeTime.Value = holdNote.Body.Result.TimeAbsolute;
|
missFadeTime.Value = holdNote.Body.Result.TimeAbsolute;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user