Add Tween::ignore_time_scale

This commit is contained in:
tvenclovas96_bigblackc 2024-12-22 13:28:11 +02:00
parent 216b3302f3
commit dbc0cc1437
4 changed files with 22 additions and 1 deletions

View file

@ -701,7 +701,8 @@ void SceneTree::process_tweens(double p_delta, bool p_physics) {
continue;
}
if (!E->get()->step(p_delta)) {
double time_step = E->get()->is_ignoring_time_scale() ? Engine::get_singleton()->get_process_step() : p_delta;
if (!E->get()->step(time_step)) {
E->get()->clear();
tweens.erase(E);
}