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/3d | |
parent | 218bef90af2091afde3b1be816c87286c194a2a8 (diff) |
Fix AnimatedSprite play() don't redraw immediately
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/sprite_3d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |