summaryrefslogtreecommitdiff
path: root/editor/rename_dialog.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-15 09:24:34 +0200
committerGitHub <noreply@github.com>2021-07-15 09:24:34 +0200
commitf79958a30e1808b8ea71c6c051e7d41f073876fe (patch)
tree84ae1c93e4d8bc013358f18d7e51dfbe9604c3b7 /editor/rename_dialog.cpp
parentb3349e4c68e86c85dd8f07ac0c50ffb57f0659d1 (diff)
parent06568bbfdfbecb489d3263f6df1e7d298642cd61 (diff)
Merge pull request #50468 from akien-mga/cleanup-header-includes
Misc cleanup of header includes
Diffstat (limited to 'editor/rename_dialog.cpp')
-rw-r--r--editor/rename_dialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/rename_dialog.cpp b/editor/rename_dialog.cpp
index 0f15d4b119..87fbbbcfb8 100644
--- a/editor/rename_dialog.cpp
+++ b/editor/rename_dialog.cpp
@@ -35,12 +35,18 @@
#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;