Godot Engine – Multi-platform 2D and 3D game engine
Merge pull request #121080 from jaydensipe/mr-clean-2d-toolbar
Thaddeus Crews62995466d754
diff --cc editor/scene/canvas_item_editor_plugin.cppindex 5863e9aba03,8f49272565e..84b34c3743a--- a/editor/scene/canvas_item_editor_plugin.cpp+++ b/editor/scene/canvas_item_editor_plugin.cpp@@@ -5816,12 -5756,10 +5817,10 @@@ CanvasItemEditor::CanvasItemEditor()// Main toolbars.// Split into separate `HBoxContainer` so they can wrap onto multiple lines as the window width decreases (the parent is a `FlowContainer`).// These are not grouped by any particular criteria. Only some of the end children are grouped separately, based on their separators.- HBoxContainer *tool_button_hbox = memnew(HBoxContainer);- tool_button_hbox->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);- main_flow->add_child(tool_button_hbox);+ HBoxContainer *input_hbox = EditorToolbarGroup::create(main_flow);bottom_split = memnew(VSplitContainer);- add_child(bottom_split);+ main_vb->add_child(bottom_split);bottom_split->set_v_size_flags(Control::SIZE_EXPAND_FILL);left_panel_split = memnew(HSplitContainer);