mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Fix postprocess order in batch events
This commit is contained in:
parent
09f5e9c9eb
commit
c1a8fe01ef
@ -234,25 +234,19 @@ namespace osu.Game.Screens.Edit
|
|||||||
applyFunction(this);
|
applyFunction(this);
|
||||||
|
|
||||||
beatmapProcessor?.PreProcess();
|
beatmapProcessor?.PreProcess();
|
||||||
|
|
||||||
|
foreach (var h in batchPendingDeletes) processHitObject(h);
|
||||||
|
foreach (var h in batchPendingInserts) processHitObject(h);
|
||||||
|
|
||||||
beatmapProcessor?.PostProcess();
|
beatmapProcessor?.PostProcess();
|
||||||
|
|
||||||
isBatchApplying = false;
|
foreach (var h in batchPendingDeletes) HitObjectRemoved?.Invoke(h);
|
||||||
|
foreach (var h in batchPendingInserts) HitObjectAdded?.Invoke(h);
|
||||||
foreach (var h in batchPendingDeletes)
|
|
||||||
{
|
|
||||||
processHitObject(h);
|
|
||||||
HitObjectRemoved?.Invoke(h);
|
|
||||||
}
|
|
||||||
|
|
||||||
batchPendingDeletes.Clear();
|
batchPendingDeletes.Clear();
|
||||||
|
|
||||||
foreach (var h in batchPendingInserts)
|
|
||||||
{
|
|
||||||
processHitObject(h);
|
|
||||||
HitObjectAdded?.Invoke(h);
|
|
||||||
}
|
|
||||||
|
|
||||||
batchPendingInserts.Clear();
|
batchPendingInserts.Clear();
|
||||||
|
|
||||||
|
isBatchApplying = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user