summaryrefslogtreecommitdiffstats
path: root/core/os/main_loop.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-07-12 17:15:59 +0200
committerYuri Sizov <yuris@humnom.net>2023-07-12 17:15:59 +0200
commit95da8e1394d9e126b4ced1bab140df5ea9ca5df9 (patch)
tree921af64d2d39d5e380b268d26b672cb2ad8c28d0 /core/os/main_loop.cpp
parentd13369eee12fc264ef9df0ae86d6a19165e58449 (diff)
parentdb48df3e6ecc7f31c3704f95dfe3267d26a9fdbf (diff)
downloadredot-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.cpp8
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);
}