1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-12-09 13:39:12 +00:00

Switching difficulty now forces the selection to be cleared.

This commit is contained in:
EliteMasterEric 2025-11-25 23:01:49 -05:00 committed by Hundrec
parent adb96897dc
commit 53c62e219b

View file

@ -1739,6 +1739,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
noteTooltipsDirty = true;
notePreviewViewportBoundsDirty = true;
// Switching difficulties should automatically clear the selection.
currentNoteSelection = [];
currentEventSelection = [];
switchToCurrentInstrumental();
postLoadInstrumental();
@ -1762,6 +1766,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
noteTooltipsDirty = true;
notePreviewViewportBoundsDirty = true;
// Switching difficulties should automatically clear the selection.
currentNoteSelection = [];
currentEventSelection = [];
return selectedDifficulty;
}