fix: rename 'name' param to 'anim_name' to avoid shadowing Node.name

This commit is contained in:
2026-06-22 21:42:38 -04:00
parent 1372db9d0e
commit 3e849551bd
+4 -4
View File
@@ -83,11 +83,11 @@ func find_animation_player(node: Node) -> AnimationPlayer:
return result
return null
func play_animation(name: String) -> void:
if animation_player and animation_player.has_animation(name):
animation_player.play(name)
func play_animation(anim_name: String) -> void:
if animation_player and animation_player.has_animation(anim_name):
animation_player.play(anim_name)
else:
print("SkinnedPlayerModel: animation '%s' not found" % name)
print("SkinnedPlayerModel: animation '%s' not found" % anim_name)
func _process(delta: float) -> void:
if not animation_player: