diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2023-01-29 00:24:52 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2023-01-29 08:00:42 +0900 |
commit | fa198c482eb0fd64442c60afd7cdfdc9aca0ae8f (patch) | |
tree | 31c3289853c0a5c9048f8d398ba4300b1384a0df /scene/2d/animated_sprite_2d.cpp | |
parent | 218bef90af2091afde3b1be816c87286c194a2a8 (diff) |
Fix AnimatedSprite play() don't redraw immediately
Diffstat (limited to 'scene/2d/animated_sprite_2d.cpp')
-rw-r--r-- | scene/2d/animated_sprite_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |