mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add Tween::ignore_time_scale
This commit is contained in:
parent
216b3302f3
commit
dbc0cc1437
4 changed files with 22 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue