From fa198c482eb0fd64442c60afd7cdfdc9aca0ae8f Mon Sep 17 00:00:00 2001 From: Silc Renew Date: Sun, 29 Jan 2023 00:24:52 +0900 Subject: Fix AnimatedSprite play() don't redraw immediately --- scene/2d/animated_sprite_2d.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scene/2d/animated_sprite_2d.cpp') diff --git a/scene/2d/animated_sprite_2d.cpp b/scene/2d/animated_sprite_2d.cpp index ccf9696d82..8f7006caca 100644 --- a/scene/2d/animated_sprite_2d.cpp +++ b/scene/2d/animated_sprite_2d.cpp @@ -475,8 +475,9 @@ void AnimatedSprite2D::play(const StringName &p_name, float p_custom_scale, bool } } - notify_property_list_changed(); set_process_internal(true); + notify_property_list_changed(); + queue_redraw(); } void AnimatedSprite2D::play_backwards(const StringName &p_name) { -- cgit v1.2.3