Merge pull request #60723 from reduz/refactor-module-initialization

This commit is contained in:
Rémi Verschelde 2022-05-04 19:08:43 +02:00 committed by GitHub
commit 84f64ddde9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 897 additions and 454 deletions

View file

@ -31,7 +31,6 @@
#include "editor_node.h"
#include "core/config/project_settings.h"
#include "core/extension/native_extension_manager.h"
#include "core/input/input.h"
#include "core/io/config_file.h"
#include "core/io/file_access.h"
@ -3942,12 +3941,9 @@ void EditorNode::register_editor_types() {
GDREGISTER_CLASS(EditorScenePostImport);
GDREGISTER_CLASS(EditorCommandPalette);
GDREGISTER_CLASS(EditorDebuggerPlugin);
NativeExtensionManager::get_singleton()->initialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
}
void EditorNode::unregister_editor_types() {
NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
_init_callbacks.clear();
if (EditorPaths::get_singleton()) {
EditorPaths::free();