fixed character editor anim bug that happened when adding a new anim (#757)

* fixed character editor anim bug

* forgor to change one variable
This commit is contained in:
Kolze
2025-08-27 21:20:31 +02:00
committed by GitHub
parent 0803e82e58
commit 734b13904e
@@ -258,6 +258,10 @@ class CharacterAnimButton extends UIButton {
parent.displayAnimsFramesList.remove(anim);
parent.displayAnimsFramesList.set(newName, displayFrame);
var animButton = parent.animButtons.get(this.anim);
parent.animButtons.remove(this.anim);
parent.animButtons.set(newName, animButton);
this.anim = newName;
nameTextBox.label.text = newName;
updateText();