Low priority redraw request for AnimatedSprite
Prevents animated sprite from creating continuous redraws in vital_redraws_only mode.
(cherry picked from commit 54a939a029
)
This commit is contained in:
parent
0a216bfec0
commit
9f646c867d
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,9 @@ void AnimatedSprite::_notification(int p_what) {
|
|||
if (frame < 0) {
|
||||
return;
|
||||
}
|
||||
if (!OS::get_singleton()->is_update_pending()) {
|
||||
return;
|
||||
}
|
||||
|
||||
float remaining = get_process_delta_time();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue