aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/mesh_editor_plugin.cpp
diff options
context:
space:
mode:
authorGilles Roudiere2017-09-22 00:12:33 +0200
committerGilles Roudiere2017-09-22 11:39:44 +0200
commit05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 (patch)
tree8ab5d7e6651f48d1a19a7f7d7586c8bcce43628d /editor/plugins/mesh_editor_plugin.cpp
parent92f062696adc5efee2355259f42f5462ec42a605 (diff)
downloadgodot-05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0.tar.gz
godot-05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0.tar.zst
godot-05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0.zip
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
Diffstat (limited to 'editor/plugins/mesh_editor_plugin.cpp')
-rw-r--r--editor/plugins/mesh_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/mesh_editor_plugin.cpp b/editor/plugins/mesh_editor_plugin.cpp
index a77f02234..b77563676 100644
--- a/editor/plugins/mesh_editor_plugin.cpp
+++ b/editor/plugins/mesh_editor_plugin.cpp
@@ -162,7 +162,7 @@ MeshEditor::MeshEditor() {
HBoxContainer *hb = memnew(HBoxContainer);
add_child(hb);
- hb->set_area_as_parent_rect(2);
+ hb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 2);
hb->add_spacer();