Fix crash when deleting Hold Start note.
This commit is contained in:
@@ -1822,6 +1822,11 @@ namespace BAKKA_Editor
|
||||
SetNonHoldButtonState(true);
|
||||
SetSelectedObject(NoteType.HoldJoint);
|
||||
}
|
||||
if (isRemoveHold)
|
||||
{
|
||||
SetNonHoldButtonState(true);
|
||||
SetSelectedObject(note.NoteType);
|
||||
}
|
||||
}
|
||||
else if (note.NoteType == NoteType.HoldJoint)
|
||||
{
|
||||
|
||||
@@ -138,8 +138,11 @@ namespace BAKKA_Editor.Operations
|
||||
{
|
||||
case NoteType.HoldStartNoBonus:
|
||||
case NoteType.HoldStartBonusFlair:
|
||||
nextNote.PrevNote = null;
|
||||
nextNote.NoteType = Note.NoteType;
|
||||
if (nextNote != null)
|
||||
{
|
||||
nextNote.PrevNote = null;
|
||||
nextNote.NoteType = Note.NoteType;
|
||||
}
|
||||
break;
|
||||
case NoteType.HoldJoint:
|
||||
prevNote.NextNote = nextNote;
|
||||
@@ -162,8 +165,11 @@ namespace BAKKA_Editor.Operations
|
||||
{
|
||||
case NoteType.HoldStartNoBonus:
|
||||
case NoteType.HoldStartBonusFlair:
|
||||
nextNote.PrevNote = Note;
|
||||
nextNote.NoteType = nextNoteType;
|
||||
if (nextNote != null)
|
||||
{
|
||||
nextNote.PrevNote = Note;
|
||||
nextNote.NoteType = nextNoteType;
|
||||
}
|
||||
break;
|
||||
case NoteType.HoldJoint:
|
||||
prevNote.NextNote = Note;
|
||||
|
||||
Reference in New Issue
Block a user