Ensure BeatmapProcessor.PostProcess is run before firing HitObjectUpdated events

This commit is contained in:
Dean Herbert 2020-09-18 19:33:03 +09:00
parent 72a173d4fc
commit 1fcf443314
1 changed files with 6 additions and 5 deletions

View File

@ -207,14 +207,15 @@ protected override void Update()
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();
}
}