From 05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Fri, 22 Sep 2017 00:12:33 +0200 Subject: Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) --- editor/plugins/mesh_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/mesh_editor_plugin.cpp') 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(); -- cgit v1.2.3-70-g09d2