diff --git a/modules/navigation_mesh_generator/editor/navigation_mesh_editor_plugin.cpp b/modules/navigation_mesh_generator/editor/navigation_mesh_editor_plugin.cpp index e0ac57eef..d168c1212 100644 --- a/modules/navigation_mesh_generator/editor/navigation_mesh_editor_plugin.cpp +++ b/modules/navigation_mesh_generator/editor/navigation_mesh_editor_plugin.cpp @@ -44,6 +44,7 @@ #include "scene/resources/navigation_mesh.h" #include "scene/resources/navigation_mesh_source_geometry_data_3d.h" #include "servers/navigation/navigation_mesh_generator.h" +#include "scene/gui/separator.h" void NavigationMeshEditor::_node_removed(Node *p_node) { if (p_node == node) { @@ -136,6 +137,8 @@ void NavigationMeshEditor::_bind_methods() { NavigationMeshEditor::NavigationMeshEditor() { bake_hbox = memnew(HBoxContainer); + bake_hbox->add_child(memnew(VSeparator)); + button_bake = memnew(Button); button_bake->set_flat(true); bake_hbox->add_child(button_bake); diff --git a/modules/navigation_mesh_generator/editor/navigation_polygon_editor_plugin.cpp b/modules/navigation_mesh_generator/editor/navigation_polygon_editor_plugin.cpp index e1fb3bea2..de6a672f8 100644 --- a/modules/navigation_mesh_generator/editor/navigation_polygon_editor_plugin.cpp +++ b/modules/navigation_mesh_generator/editor/navigation_polygon_editor_plugin.cpp @@ -43,6 +43,7 @@ #include "scene/resources/navigation_mesh_source_geometry_data_2d.h" #include "scene/resources/navigation_polygon.h" #include "servers/navigation/navigation_mesh_generator.h" +#include "scene/gui/separator.h" Ref NavigationPolygonEditor::_ensure_navpoly() const { Ref navpoly = node->get_navigation_polygon(); @@ -136,6 +137,8 @@ NavigationPolygonEditor::NavigationPolygonEditor(EditorNode *p_editor, bool p_wi bake_hbox = memnew(HBoxContainer); add_child(bake_hbox); + bake_hbox->add_child(memnew(VSeparator)); + button_bake = memnew(Button); button_bake->set_flat(true); bake_hbox->add_child(button_bake);