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/3d/sprite_3d.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scene/3d') diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 635c566ef8..9712df0936 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -1182,8 +1182,9 @@ void AnimatedSprite3D::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 AnimatedSprite3D::play_backwards(const StringName &p_name) { -- cgit v1.2.3