mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 17:02:55 +08:00
Update state after OnApply()
This commit is contained in:
parent
ec8b726ea8
commit
ac47399e6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user