You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 17:36:07 +00:00
Move editor class and plugin registrations to a dedicated file
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
#include "editor/progress_dialog.h"
|
||||
#include "editor/project_converter_3_to_4.h"
|
||||
#include "editor/project_manager.h"
|
||||
#include "editor/register_editor_types.h"
|
||||
#ifndef NO_EDITOR_SPLASH
|
||||
#include "main/splash_editor.gen.h"
|
||||
#endif
|
||||
@@ -487,7 +488,7 @@ Error Main::test_setup() {
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||
EditorNode::register_editor_types();
|
||||
register_editor_types();
|
||||
|
||||
initialize_modules(MODULE_INITIALIZATION_LEVEL_EDITOR);
|
||||
NativeExtensionManager::get_singleton()->initialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
|
||||
@@ -540,7 +541,7 @@ void Main::test_cleanup() {
|
||||
#ifdef TOOLS_ENABLED
|
||||
NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_EDITOR);
|
||||
EditorNode::unregister_editor_types();
|
||||
unregister_editor_types();
|
||||
#endif
|
||||
|
||||
NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_SCENE);
|
||||
@@ -2313,7 +2314,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||
EditorNode::register_editor_types();
|
||||
register_editor_types();
|
||||
initialize_modules(MODULE_INITIALIZATION_LEVEL_EDITOR);
|
||||
NativeExtensionManager::get_singleton()->initialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
|
||||
|
||||
@@ -3313,7 +3314,7 @@ void Main::cleanup(bool p_force) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_EDITOR);
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_EDITOR);
|
||||
EditorNode::unregister_editor_types();
|
||||
unregister_editor_types();
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user