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 }