summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-29 16:48:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-29 16:48:58 +0100
commite16acf26db0fbeb3c6b1a4fa0c0cd2021e33c413 (patch)
tree8a57d1cf549aa6440f366ba5e9d9777a1cd9b3f2 /editor
parentc950d174cf69a86c3c72a05d9043eae7eb50bac0 (diff)
parentc4c4da77b103e134e9df889e9156b15dde7eb283 (diff)
Merge pull request #63512 from MmAaXx500/autoload-double-add-remove
Prevent autoloads from being added or removed twice
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_autoload_settings.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp
index 8cb1dfd24e..41b3d45a1f 100644
--- a/editor/editor_autoload_settings.cpp
+++ b/editor/editor_autoload_settings.cpp
@@ -541,8 +541,6 @@ void EditorAutoloadSettings::update_autoload() {
info.node->queue_free();
info.node = nullptr;
}
-
- ProjectSettings::get_singleton()->remove_autoload(info.name);
}
// Load new/changed autoloads
@@ -567,12 +565,6 @@ void EditorAutoloadSettings::update_autoload() {
}
}
- ProjectSettings::AutoloadInfo prop_info;
- prop_info.name = info->name;
- prop_info.path = info->path;
- prop_info.is_singleton = info->is_singleton;
- ProjectSettings::get_singleton()->add_autoload(prop_info);
-
if (!info->in_editor && !info->is_singleton) {
// No reason to keep this node
memdelete(info->node);