diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-12 17:15:59 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-12 17:15:59 +0200 |
commit | 95da8e1394d9e126b4ced1bab140df5ea9ca5df9 (patch) | |
tree | 921af64d2d39d5e380b268d26b672cb2ad8c28d0 /core/os/main_loop.cpp | |
parent | d13369eee12fc264ef9df0ae86d6a19165e58449 (diff) | |
parent | db48df3e6ecc7f31c3704f95dfe3267d26a9fdbf (diff) | |
download | redot-engine-95da8e1394d9e126b4ced1bab140df5ea9ca5df9.tar.gz |
Merge pull request #70771 from kleonc/main-loop-set-after-resolved
Ensure `MainLoop` and its custom script is set right after it's resolved
Diffstat (limited to 'core/os/main_loop.cpp')
-rw-r--r-- | core/os/main_loop.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp index b908b64d73..5e21490164 100644 --- a/core/os/main_loop.cpp +++ b/core/os/main_loop.cpp @@ -52,15 +52,7 @@ void MainLoop::_bind_methods() { GDVIRTUAL_BIND(_finalize); } -void MainLoop::set_initialize_script(const Ref<Script> &p_initialize_script) { - initialize_script = p_initialize_script; -} - void MainLoop::initialize() { - if (initialize_script.is_valid()) { - set_script(initialize_script); - } - GDVIRTUAL_CALL(_initialize); } |