summaryrefslogtreecommitdiff
path: root/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-19 23:09:49 +0200
committerGitHub <noreply@github.com>2020-06-19 23:09:49 +0200
commit6d8c14f849376905e1577f9fc3f9512bcffb1e3c (patch)
tree1c0de1bac35046915575687e8d8993643d372474 /modules/gdnavigation/navigation_mesh_editor_plugin.cpp
parentcb9d02a8d1b5bb71abcec6be0e75002c5ea656c4 (diff)
parent31b7f02a29cdf4f1c30cfc37962f43f67380b9ad (diff)
Merge pull request #39690 from Calinou/remove-toolbutton
Remove ToolButton in favor of Button
Diffstat (limited to 'modules/gdnavigation/navigation_mesh_editor_plugin.cpp')
-rw-r--r--modules/gdnavigation/navigation_mesh_editor_plugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
index 5fe1060aae..648f4f7cdd 100644
--- a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
+++ b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
@@ -95,13 +95,15 @@ void NavigationMeshEditor::_bind_methods() {
NavigationMeshEditor::NavigationMeshEditor() {
bake_hbox = memnew(HBoxContainer);
- button_bake = memnew(ToolButton);
+ button_bake = memnew(Button);
+ button_bake->set_flat(true);
bake_hbox->add_child(button_bake);
button_bake->set_toggle_mode(true);
button_bake->set_text(TTR("Bake NavMesh"));
button_bake->connect("pressed", callable_mp(this, &NavigationMeshEditor::_bake_pressed));
- button_reset = memnew(ToolButton);
+ button_reset = memnew(Button);
+ button_reset->set_flat(true);
bake_hbox->add_child(button_reset);
// No button text, we only use a revert icon which is set when entering the tree.
button_reset->set_tooltip(TTR("Clear the navigation mesh."));