1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Always initialize DHO transforms on LoadComplete

With the previous commit, the transform application is skipped when the state is already changed. But it turns out the previous commit breaks slider animation in the standard editor. This is probably due to the transforms are applied before nested hit objects are added.
This commit is contained in:
ekrctb 2021-08-10 16:34:38 +09:00
parent 53b9852034
commit c63dfa21e1

View File

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