1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Fix DHO state is overwritten to Idle on LoadComplete

The state may already be changed before `LoadComplete` is called because DHO is already added to the draw hierarchy.
This commit is contained in:
ekrctb 2021-08-06 19:58:46 +09:00
parent 468557b3a9
commit f262f288fc

View File

@ -190,7 +190,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
comboIndexBindable.BindValueChanged(_ => UpdateComboColour());
comboIndexWithOffsetsBindable.BindValueChanged(_ => UpdateComboColour(), true);
updateState(ArmedState.Idle, true);
// If the state is changed, transforms are already initialized.
if (state.Value == ArmedState.Idle)
updateState(ArmedState.Idle, true);
}
/// <summary>