Fix ctrl-click on hold note crashing Chart Editor
This commit is contained in:
@@ -4924,7 +4924,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||
else if (highlightedHoldNote != null && highlightedHoldNote.noteData != null)
|
||||
{
|
||||
// Control click to select/deselect an individual note.
|
||||
if (isNoteSelected(highlightedNote.noteData))
|
||||
if (isNoteSelected(highlightedHoldNote.noteData))
|
||||
{
|
||||
performCommand(new DeselectItemsCommand([highlightedHoldNote.noteData], []));
|
||||
}
|
||||
@@ -5216,7 +5216,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||
}
|
||||
else if (highlightedHoldNote != null && highlightedHoldNote.noteData != null)
|
||||
{
|
||||
if (isNoteSelected(highlightedNote.noteData))
|
||||
if (isNoteSelected(highlightedHoldNote.noteData))
|
||||
{
|
||||
performCommand(new DeselectItemsCommand([highlightedHoldNote.noteData], []));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user