Re/enabled the entity_spell_system's editor plugin, and disabled it's tool menu item.

This commit is contained in:
Relintai 2025-04-13 18:25:58 +02:00
parent c16c5d35f4
commit a21b5a843e
2 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,7 @@ void ESSEditorPlugin::fix_ids(Variant param) {
ESSEditorPlugin::ESSEditorPlugin(EditorNode *p_node) {
editor = p_node;
editor->add_tool_menu_item("ESS: make ids unique", this, "fix_ids");
//editor->add_tool_menu_item("ESS: make ids unique", this, "fix_ids");
}
ESSEditorPlugin::~ESSEditorPlugin() {

View File

@ -132,7 +132,9 @@
#include "singletons/profile_manager.h"
#ifdef TOOLS_ENABLED
#include "editor/ess_editor_plugin.h"
#endif
#include "database/ess_resource_db.cpp"
#include "database/ess_resource_db_folders.h"
@ -297,9 +299,9 @@ void register_entity_spell_system_types(ModuleRegistrationLevel p_level) {
}
#ifdef TOOLS_ENABLED
//if (p_level == MODULE_REGISTRATION_LEVEL_EDITOR) {
//EditorPlugins::add_by_type<ESSEditorPlugin>();
//}
if (p_level == MODULE_REGISTRATION_LEVEL_EDITOR) {
EditorPlugins::add_by_type<ESSEditorPlugin>();
}
#endif
}