fix deleting not removing selected boxes
This commit is contained in:
parent
5f8ca9beb4
commit
b749f10957
@ -2719,6 +2719,7 @@ class ChartingState extends MusicBeatState
|
|||||||
var box = new ChartingBox(note.x,note.y,note);
|
var box = new ChartingBox(note.x,note.y,note);
|
||||||
box.connectedNoteData = i;
|
box.connectedNoteData = i;
|
||||||
selectedBoxes.add(box);
|
selectedBoxes.add(box);
|
||||||
|
note.charterSelected = true;
|
||||||
curSelectedNoteObject.charterSelected = true;
|
curSelectedNoteObject.charterSelected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2763,9 +2764,6 @@ class ChartingState extends MusicBeatState
|
|||||||
if (note.sustainLength > 0)
|
if (note.sustainLength > 0)
|
||||||
curRenderedSustains.remove(note.noteCharterObject);
|
curRenderedSustains.remove(note.noteCharterObject);
|
||||||
|
|
||||||
if (note.charterSelected)
|
|
||||||
{
|
|
||||||
note.charterSelected = false;
|
|
||||||
for(i in 0...selectedBoxes.members.length)
|
for(i in 0...selectedBoxes.members.length)
|
||||||
{
|
{
|
||||||
var box = selectedBoxes.members[i];
|
var box = selectedBoxes.members[i];
|
||||||
@ -2777,7 +2775,6 @@ class ChartingState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function clearSection():Void
|
function clearSection():Void
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user