mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Allow disabling the RegEx module in the editor
This commit is contained in:
parent
520462e98c
commit
4fc639916c
5 changed files with 27 additions and 12 deletions
|
@ -30,23 +30,19 @@
|
|||
|
||||
#include "rename_dialog.h"
|
||||
|
||||
#ifdef MODULE_REGEX_ENABLED
|
||||
|
||||
#include "core/string/print_string.h"
|
||||
#include "editor_node.h"
|
||||
#include "editor_scale.h"
|
||||
#include "editor_settings.h"
|
||||
#include "editor_themes.h"
|
||||
#include "modules/regex/regex.h"
|
||||
#include "plugins/script_editor_plugin.h"
|
||||
#include "scene/gui/control.h"
|
||||
#include "scene/gui/label.h"
|
||||
#include "scene/gui/tab_container.h"
|
||||
|
||||
#include "modules/modules_enabled.gen.h"
|
||||
#ifdef MODULE_REGEX_ENABLED
|
||||
#include "modules/regex/regex.h"
|
||||
#else
|
||||
#error "Can't build editor rename dialog without RegEx module."
|
||||
#endif
|
||||
|
||||
RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, UndoRedo *p_undo_redo) {
|
||||
scene_tree_editor = p_scene_tree_editor;
|
||||
undo_redo = p_undo_redo;
|
||||
|
@ -655,3 +651,5 @@ void RenameDialog::_features_toggled(bool pressed) {
|
|||
size.y = 0;
|
||||
set_size(size);
|
||||
}
|
||||
|
||||
#endif // MODULE_REGEX_ENABLED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue