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

Update state after OnApply()

This commit is contained in:
smoogipoo 2020-11-10 00:30:23 +09:00
parent ec8b726ea8
commit ac47399e6e

View File

@ -197,11 +197,12 @@ namespace osu.Game.Rulesets.Objects.Drawables
HitObject.DefaultsApplied += onDefaultsApplied;
OnApply(hitObject);
// If not loaded, the state update happens in LoadComplete(). Otherwise, the update is scheduled to allow for lifetime updates.
if (IsLoaded)
Schedule(() => updateState(ArmedState.Idle, true));
OnApply(hitObject);
hasHitObjectApplied = true;
}