fix deleting not removing selected boxes

This commit is contained in:
KadeDeveloper 2021-08-13 14:54:26 -07:00
parent 5f8ca9beb4
commit b749f10957

View File

@ -2719,6 +2719,7 @@ class ChartingState extends MusicBeatState
var box = new ChartingBox(note.x,note.y,note);
box.connectedNoteData = i;
selectedBoxes.add(box);
note.charterSelected = true;
curSelectedNoteObject.charterSelected = true;
}
@ -2763,9 +2764,6 @@ class ChartingState extends MusicBeatState
if (note.sustainLength > 0)
curRenderedSustains.remove(note.noteCharterObject);
if (note.charterSelected)
{
note.charterSelected = false;
for(i in 0...selectedBoxes.members.length)
{
var box = selectedBoxes.members[i];
@ -2777,7 +2775,6 @@ class ChartingState extends MusicBeatState
}
}
}
}
function clearSection():Void
{