Commit 01d1033
committed
Retain control point selection over undo/redo operations
Updated `ControlPointList` to re-establish the selected group by looking up its timestamp in the restored beatmap state, rather than relying on instance equality which fails after undo/redo patching.
Improved the logic to handle moved control points by falling back to selecting the closest timing point if an exact time match is not found.
Updated `TestSceneTimingScreen` to verify that selection is correctly retained and fixed group count assertions to match the actual state of the test beatmap.1 parent 2817c6b commit 01d1033
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments