1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 04:47:50 +08:00
osu-lazer/osu.Game/Screens/Edit/Compose/Components/Timeline
Bartłomiej Dach bdeea37a44
Commit active placement when starting drag selection via timeline
This was reported in https://github.com/ppy/osu/pull/28474, albeit the
code changes proposed there did not fix the issue at all.

See 8b6385f7d0 for demonstration of the
crash scenario. Basically what is happening there is:

- The starting premise is that there is a spinner placement active.
- At this time, a drag selection is started via the timeline.
- Once the drag selection finds at least one suitable object to select,
  it mutates `SelectedItems`.
- When selection changes for any reason, the `HitObjectComposer`
  decides to switch to the "select" tool, regardless of why
  the selection changed.
- Changing the active tool causes the current placement - if any -
  to be committed, which mutates the beatmap.
- Back at the drag box selection code, this causes a "collection
  modified when enumerating" exception.

The proposed fix here is to eagerly commit active placement - if any -
when drag selection is initiated via the timeline, which avoids this
issue. This also appears to vaguely match stable behaviour and is sort
of consistent with the logic of committing any outstanding changes upon
switching to the selection tool.
2024-06-14 09:32:40 +02:00
..
CentreMarker.cs Update design of timeline centre marker and adjust surrounding paddings 2023-07-14 16:37:57 +09:00
DifficultyPointPiece.cs Update focus specifications in line with framework changes 2024-05-22 21:32:49 +08:00
HitObjectPointPiece.cs Fix non-block namespace usage 2023-05-02 15:09:24 +09:00
SamplePointPiece.cs Update focus specifications in line with framework changes 2024-05-22 21:32:49 +08:00
Timeline.cs Use alternative workaround 2023-12-29 11:07:45 +01:00
TimelineArea.cs Fix timeline centre point being ever-so-slight off 2023-07-21 15:26:41 +09:00
TimelineBlueprintContainer.cs Commit active placement when starting drag selection via timeline 2024-06-14 09:32:40 +02:00
TimelineButton.cs Automated pass 2023-06-24 01:00:03 +09:00
TimelineControlPointDisplay.cs Adjust code structure slightly 2024-03-20 12:52:54 +08:00
TimelineControlPointGroup.cs Implement longer design for timing point piece 2023-07-14 16:37:56 +09:00
TimelineDragBox.cs Automated pass 2023-06-24 01:00:03 +09:00
TimelineHitObjectBlueprint.cs Fic incorrect ExtendableCircle gradient 2024-03-10 22:45:29 +03:00
TimelineSelectionHandler.cs Partial everything 2022-11-27 00:00:27 +09:00
TimelineTickDisplay.cs Revert "Temporary rollback of framework / SDL3" 2024-05-22 16:29:39 +08:00
TimingPointPiece.cs Automated pass 2023-06-24 01:00:03 +09:00
TopPointPiece.cs Improve TimelineControlPointDisplay performance 2024-03-16 11:57:18 +03:00
ZoomableScrollContainer.cs Automated pass 2023-06-24 01:00:03 +09:00