1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 03:19:55 +08:00

Ensure BeatmapProcessor.PostProcess is run before firing HitObjectUpdated events

This commit is contained in:
Dean Herbert
2020-09-18 19:33:03 +09:00
Unverified
parent 72a173d4fc
commit 1fcf443314
+6 -5
View File
@@ -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();
}
}