mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #60331 from KoBeWi/tween_static()
This commit is contained in:
commit
1de51133c9
5 changed files with 18 additions and 16 deletions
|
|
@ -1117,9 +1117,7 @@ Ref<SceneTreeTimer> SceneTree::create_timer(double p_delay_sec, bool p_process_a
|
|||
}
|
||||
|
||||
Ref<Tween> SceneTree::create_tween() {
|
||||
Ref<Tween> tween;
|
||||
tween.instantiate();
|
||||
tween->set_valid(true);
|
||||
Ref<Tween> tween = memnew(Tween(true));
|
||||
tweens.push_back(tween);
|
||||
return tween;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue