Fix Tween pause behavior
This commit is contained in:
parent
5a61822d7c
commit
205f56f226
4 changed files with 24 additions and 15 deletions
|
|
@ -535,7 +535,7 @@ void SceneTree::process_tweens(float p_delta, bool p_physics) {
|
|||
for (List<Ref<Tween>>::Element *E = tweens.front(); E;) {
|
||||
List<Ref<Tween>>::Element *N = E->next();
|
||||
// Don't process if paused or process mode doesn't match.
|
||||
if ((paused && E->get()->should_pause()) || (p_physics == (E->get()->get_process_mode() == Tween::TWEEN_PROCESS_IDLE))) {
|
||||
if (!E->get()->can_process(paused) || (p_physics == (E->get()->get_process_mode() == Tween::TWEEN_PROCESS_IDLE))) {
|
||||
if (E == L) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue