From 734b13904eb0946ba68988e167fc74afcc1f67aa Mon Sep 17 00:00:00 2001 From: Kolze <53307233+KolzeYT@users.noreply.github.com> Date: Wed, 27 Aug 2025 21:20:31 +0200 Subject: [PATCH] fixed character editor anim bug that happened when adding a new anim (#757) * fixed character editor anim bug * forgor to change one variable --- source/funkin/editors/character/CharacterAnimButton.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/editors/character/CharacterAnimButton.hx b/source/funkin/editors/character/CharacterAnimButton.hx index 80dbb480..a9b184a9 100644 --- a/source/funkin/editors/character/CharacterAnimButton.hx +++ b/source/funkin/editors/character/CharacterAnimButton.hx @@ -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();