From a21b5a843e2e4fb0fb856a1bc87ee3efd08294a7 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 13 Apr 2025 18:25:58 +0200 Subject: [PATCH] Re/enabled the entity_spell_system's editor plugin, and disabled it's tool menu item. --- modules/entity_spell_system/editor/ess_editor_plugin.cpp | 2 +- modules/entity_spell_system/register_types.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/entity_spell_system/editor/ess_editor_plugin.cpp b/modules/entity_spell_system/editor/ess_editor_plugin.cpp index 04f178b5d..1ad08cc54 100644 --- a/modules/entity_spell_system/editor/ess_editor_plugin.cpp +++ b/modules/entity_spell_system/editor/ess_editor_plugin.cpp @@ -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() { diff --git a/modules/entity_spell_system/register_types.cpp b/modules/entity_spell_system/register_types.cpp index 40b1f5337..23487faac 100644 --- a/modules/entity_spell_system/register_types.cpp +++ b/modules/entity_spell_system/register_types.cpp @@ -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(); - //} + if (p_level == MODULE_REGISTRATION_LEVEL_EDITOR) { + EditorPlugins::add_by_type(); + } #endif }