mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 03:59:55 +08:00
Fix postprocess order in batch events
This commit is contained in:
@@ -234,25 +234,19 @@ namespace osu.Game.Screens.Edit
|
||||
applyFunction(this);
|
||||
|
||||
beatmapProcessor?.PreProcess();
|
||||
|
||||
foreach (var h in batchPendingDeletes) processHitObject(h);
|
||||
foreach (var h in batchPendingInserts) processHitObject(h);
|
||||
|
||||
beatmapProcessor?.PostProcess();
|
||||
|
||||
isBatchApplying = false;
|
||||
|
||||
foreach (var h in batchPendingDeletes)
|
||||
{
|
||||
processHitObject(h);
|
||||
HitObjectRemoved?.Invoke(h);
|
||||
}
|
||||
foreach (var h in batchPendingDeletes) HitObjectRemoved?.Invoke(h);
|
||||
foreach (var h in batchPendingInserts) HitObjectAdded?.Invoke(h);
|
||||
|
||||
batchPendingDeletes.Clear();
|
||||
|
||||
foreach (var h in batchPendingInserts)
|
||||
{
|
||||
processHitObject(h);
|
||||
HitObjectAdded?.Invoke(h);
|
||||
}
|
||||
|
||||
batchPendingInserts.Clear();
|
||||
|
||||
isBatchApplying = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user