mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Merge pull request #10188 from peppy/fix-hitobjectupdate-postprocess-order
Ensure BeatmapProcessor.PostProcess is run before firing HitObjectUpdated events
This commit is contained in:
commit
10400b4b3d
@ -207,14 +207,15 @@ namespace osu.Game.Screens.Edit
|
||||
beatmapProcessor?.PreProcess();
|
||||
|
||||
foreach (var hitObject in pendingUpdates)
|
||||
{
|
||||
processHitObject(hitObject);
|
||||
HitObjectUpdated?.Invoke(hitObject);
|
||||
}
|
||||
|
||||
pendingUpdates.Clear();
|
||||
|
||||
beatmapProcessor?.PostProcess();
|
||||
|
||||
// explicitly needs to be fired after PostProcess
|
||||
foreach (var hitObject in pendingUpdates)
|
||||
HitObjectUpdated?.Invoke(hitObject);
|
||||
|
||||
pendingUpdates.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user