Merge pull request #10985 from peppy/fix-editor-disappearing-objects

Remove unnecessary schedule logic from Apply's local updateState call
This commit is contained in:
Bartłomiej Dach
2020-11-29 21:33:27 +01:00
committed by GitHub

View File

@ -263,10 +263,8 @@ namespace osu.Game.Rulesets.Objects.Drawables
OnApply();
HitObjectApplied?.Invoke(this);
// 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().
if (IsLoaded)
{
Scheduler.Add(() =>
{
if (Result.IsHit)
updateState(ArmedState.Hit, true);
@ -274,7 +272,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
updateState(ArmedState.Miss, true);
else
updateState(ArmedState.Idle, true);
});
}
hasHitObjectApplied = true;