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:
parent
ec8b726ea8
commit
ac47399e6e
@ -197,11 +197,12 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
|
|
||||||
HitObject.DefaultsApplied += onDefaultsApplied;
|
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 not loaded, the state update happens in LoadComplete(). Otherwise, the update is scheduled to allow for lifetime updates.
|
||||||
if (IsLoaded)
|
if (IsLoaded)
|
||||||
Schedule(() => updateState(ArmedState.Idle, true));
|
Schedule(() => updateState(ArmedState.Idle, true));
|
||||||
|
|
||||||
OnApply(hitObject);
|
|
||||||
hasHitObjectApplied = true;
|
hasHitObjectApplied = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user