viniciusgerevini / godot-aseprite-wizard

Godot Editor plugin to help import Aseprite animations to AnimationPlayers, AnimatedSprites and SpriteFrames.
MIT License
891 stars 42 forks source link

Fix loop exception detection for animation in a library #112

Closed poohcom1 closed 1 year ago

poohcom1 commented 1 year ago

Found this minor bug; using a prefix for a loop exception breaks when the animation is in a library (i.e. attack/_a). The substring logic uses the full animation name (anim_name) rather than the base animation name (animation_name), so the name gets reverted to full name, creating an invalid animation.

Haven't had a chance to fully test it, but I applied this patch for my project and so far it's working well.

viniciusgerevini commented 1 year ago

Oh. Good catch. Thanks @poohcom1