Merge pull request #84302 from YuriSizov/editor-forget-about-file-dialogs-willya

Disconnect `EditorNode` from file dialogs on destruction
This commit is contained in:
Rémi Verschelde 2023-11-01 15:13:18 +01:00
commit b797f6cb83
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -8076,6 +8076,17 @@ EditorNode::~EditorNode() {
GDExtensionEditorPlugins::editor_node_add_plugin = nullptr;
GDExtensionEditorPlugins::editor_node_remove_plugin = nullptr;
FileDialog::get_icon_func = nullptr;
FileDialog::register_func = nullptr;
FileDialog::unregister_func = nullptr;
EditorFileDialog::get_icon_func = nullptr;
EditorFileDialog::register_func = nullptr;
EditorFileDialog::unregister_func = nullptr;
file_dialogs.clear();
editor_file_dialogs.clear();
singleton = nullptr;
}