From 69bb7e5b1199e6af3256fe948dbfa3102c1ccbc8 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Wed, 23 Nov 2022 18:13:13 -0500 Subject: Fix singleton scene cyclic loading --- main/main.cpp | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 55f7177258..91dd2082bb 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2742,27 +2742,38 @@ bool Main::start() { for (const KeyValue &E : autoloads) { const ProjectSettings::AutoloadInfo &info = E.value; - Ref res = ResourceLoader::load(info.path); - ERR_CONTINUE_MSG(res.is_null(), "Can't autoload: " + info.path); Node *n = nullptr; - Ref scn = res; - Ref