From ee8716a7e6f6b82e731d72ab7ff593ab08f73c37 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 3 Sep 2023 12:44:55 +0200 Subject: [PATCH] Added a VSeparator to the NavigationPolygonEditor and the NavigationMeshEditor. --- .../editor/navigation_mesh_editor_plugin.cpp | 3 +++ .../editor/navigation_polygon_editor_plugin.cpp | 3 +++ 2 files changed, 6 insertions(+) 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);