1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 04:22:55 +08:00
osu-lazer/osu.Game/Screens/Edit/Compose
Bartłomiej Dach 4dd225fdc8
Fix compose blueprint container not unsubscribing from event
Closes https://github.com/ppy/osu/issues/28938.

This is related to reloading the composer on timing point changes in
scrolling rulesets. The lack of unsubscription from this would cause
blueprints to be created for disposed composers via the
`hitObjectAdded()` flow.

The following line looks as if a sync load should be forced on a newly
created placement blueprint:

    da4d37c4ad/osu.Game/Screens/Edit/Compose/Components/ComposeBlueprintContainer.cs (L364)

however, it is not the case if the parent
(`placementBlueprintContainer`) is disposed, which it would be in this
case. Therefore, the blueprint stays `NotLoaded` rather than `Ready`,
therefore it never receives its DI dependencies, therefore it dies on
an `EditorBeatmap` nullref.
2024-07-19 08:32:36 +02:00
..
Components Fix compose blueprint container not unsubscribing from event 2024-07-19 08:32:36 +02:00
ComposeScreen.cs Adjust breaks in timeline to be centered with waveform / hitobjects 2024-07-12 15:45:58 +09:00
HitObjectUsageEventBuffer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
IPlacementHandler.cs Automated pass 2023-06-24 01:00:03 +09:00