summaryrefslogtreecommitdiffstats
path: root/editor/editor_autoload_settings.cpp
diff options
context:
space:
mode:
authorMmAaXx500 <viktor.balogh2000@gmail.com>2022-07-26 22:02:53 +0200
committerMmAaXx500 <viktor.balogh2000@gmail.com>2022-07-26 22:37:06 +0200
commitc4c4da77b103e134e9df889e9156b15dde7eb283 (patch)
tree8a0d30b45dc3793942130c03c647ad13313c4430 /editor/editor_autoload_settings.cpp
parent0a420c478761d49b5f973ff292e1f3e4a63613b3 (diff)
downloadredot-engine-c4c4da77b103e134e9df889e9156b15dde7eb283.tar.gz
Prevent autoloads from being added or removed twice
Diffstat (limited to 'editor/editor_autoload_settings.cpp')
-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 ee4955d0a0..2447446852 100644
--- a/editor/editor_autoload_settings.cpp
+++ b/editor/editor_autoload_settings.cpp
@@ -529,8 +529,6 @@ void EditorAutoloadSettings::update_autoload() {
info.node->queue_delete();
info.node = nullptr;
}
-
- ProjectSettings::get_singleton()->remove_autoload(info.name);
}
// Load new/changed autoloads
@@ -555,12 +553,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);