summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/material_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/material_editor_plugin.cpp b/editor/plugins/material_editor_plugin.cpp
index f133d9d415..68107d463d 100644
--- a/editor/plugins/material_editor_plugin.cpp
+++ b/editor/plugins/material_editor_plugin.cpp
@@ -125,7 +125,7 @@ MaterialEditor::MaterialEditor() {
// canvas item
layout_2d = memnew(HBoxContainer);
- layout_2d->set_alignment(BoxContainer::ALIGN_CENTER);
+ layout_2d->set_alignment(ALIGNMENT_CENTER);
add_child(layout_2d);
layout_2d->set_anchors_and_offsets_preset(PRESET_WIDE);