Skip to content

Commit

Permalink
Fix DrawableHitObject.AccentColour not being updated if object entr…
Browse files Browse the repository at this point in the history
…y is not attached
  • Loading branch information
peppy committed Nov 1, 2022
1 parent ddb3d83 commit f014acf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ protected sealed override void OnApply(HitObjectLifetimeEntry entry)
updateState(ArmedState.Miss, true);
else
updateState(ArmedState.Idle, true);

// Combo colour may have been applied via a bindable flow while no object entry was attached.
// Update here to ensure we're in a good state.
UpdateComboColour();
}
}

Expand Down

0 comments on commit f014acf

Please sign in to comment.