mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #31569 from SaracenOne/plugin_shutdown_fix
Fix an exception when trying to close down editor with plugins using autoload singletons
This commit is contained in:
commit
739cbf45c3
@ -439,11 +439,11 @@ void EditorAutoloadSettings::update_autoload() {
|
||||
}
|
||||
if (info.in_editor) {
|
||||
ERR_CONTINUE(!info.node);
|
||||
get_tree()->get_root()->remove_child(info.node);
|
||||
get_tree()->get_root()->call_deferred("remove_child", info.node);
|
||||
}
|
||||
|
||||
if (info.node) {
|
||||
memdelete(info.node);
|
||||
info.node->queue_delete();
|
||||
info.node = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user