Skip to content

Commit 5eddbc5

Browse files
authored
Fix NOR error when deleting an animation that's ghosted (#828)
1 parent 15496de commit 5eddbc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/funkin/editors/character/CharacterAnimsWindow.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class CharacterAnimsWindow extends UIButtonList<CharacterAnimButton> {
104104
if (character.getAnimName() == button.anim)
105105
@:privateAccess CharacterEditor.instance._animation_down(null);
106106

107+
character.ghosts.remove(button.anim);
107108
character.removeAnimation(button.anim);
108109
if (character.animOffsets.exists(button.anim)) character.animOffsets.remove(button.anim);
109110
if (character.animDatas.exists(button.anim)) character.animDatas.remove(button.anim);

0 commit comments

Comments
 (0)