fixed an animation override bug cause im dumb and havent touched the json parser in a while

This commit is contained in:
JHDev2006
2025-10-17 13:32:08 +01:00
parent 2e66c00163
commit a0521becb4
9 changed files with 167 additions and 19 deletions

View File

@@ -354,7 +354,6 @@ func camera_make_current() -> void:
func play_animation(animation_name := "") -> void:
if sprite.sprite_frames == null: return
animation_name = get_fallback_animation(animation_name)
print(animation_name)
if sprite.animation != animation_name:
sprite.play(animation_name)