From 7a11b63bb01b58765c4d2df6c5dbf89cb4ba10f5 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Sat, 2 Sep 2023 22:16:42 -0700 Subject: [PATCH] fix dragging undo when same spot --- source/funkin/editors/charter/CharterStrumLineGroup.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/editors/charter/CharterStrumLineGroup.hx b/source/funkin/editors/charter/CharterStrumLineGroup.hx index fd7156f5..64e629a1 100644 --- a/source/funkin/editors/charter/CharterStrumLineGroup.hx +++ b/source/funkin/editors/charter/CharterStrumLineGroup.hx @@ -67,7 +67,8 @@ class CharterStrumLineGroup extends FlxTypedGroup { if (addToUndo) { var oldID = __pastStrumlines.indexOf(draggingObj); var newID = members.indexOf(draggingObj); - Charter.instance.undos.addToUndo(COrderStrumLine(draggingObj, oldID, newID)); + if (newID != oldID) + Charter.instance.undos.addToUndo(COrderStrumLine(draggingObj, oldID, newID)); } draggingObj = null;