From eed0665e42667a6cdbf35a296e679dbbc8e6d253 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Tue, 25 Nov 2025 23:01:49 -0500 Subject: [PATCH] Switching difficulty now forces the selection to be cleared. --- source/funkin/ui/debug/charting/ChartEditorState.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 985fa8767..16990dd1a 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -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; }