diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-28 15:51:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 15:51:58 +0100 |
commit | e3a644ee3718629bf5b3733d6136ceec7f437a82 (patch) | |
tree | 07379c0e6e3659e78d63b6fe89759611c8a06b62 | |
parent | b9de47f4ce13bf795f0768ae7424d7a73d157282 (diff) | |
parent | 4f5c3d5a60b867e9d9e239a9f5db8c897d9f2a4d (diff) |
Merge pull request #57353 from KoBeWi/tween_stop()
-rw-r--r-- | scene/animation/tween.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index a37c6f5355..53ff3eeeae 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -249,8 +249,6 @@ bool Tween::custom_step(float p_delta) { } bool Tween::step(float p_delta) { - ERR_FAIL_COND_V_MSG(tweeners.is_empty(), false, "Tween started, but has no Tweeners."); - if (dead) { return false; } @@ -271,6 +269,7 @@ bool Tween::step(float p_delta) { } if (!started) { + ERR_FAIL_COND_V_MSG(tweeners.is_empty(), false, "Tween started, but has no Tweeners."); current_step = 0; loops_done = 0; start_tweeners(); |