Skip to content

Commit 734b139

Browse files
authored
fixed character editor anim bug that happened when adding a new anim (#757)
* fixed character editor anim bug * forgor to change one variable
1 parent 0803e82 commit 734b139

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/editors/character/CharacterAnimButton.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ class CharacterAnimButton extends UIButton {
258258
parent.displayAnimsFramesList.remove(anim);
259259
parent.displayAnimsFramesList.set(newName, displayFrame);
260260

261+
var animButton = parent.animButtons.get(this.anim);
262+
parent.animButtons.remove(this.anim);
263+
parent.animButtons.set(newName, animButton);
264+
261265
this.anim = newName;
262266
nameTextBox.label.text = newName;
263267
updateText();

0 commit comments

Comments
 (0)