diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2020-10-29 16:53:41 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2020-10-29 16:53:41 -0300 |
commit | 3b0cb48bcd3ee63b7ae59475f1d6295d654a9786 (patch) | |
tree | f9bc3faeee06a5b6e7820213ca863a603763793a | |
parent | 5bb7c7c367c1df7257164053b85d01dcf1406f45 (diff) |
Set previous tool buttons in the Polygon2D editor to be flat again
-rw-r--r-- | editor/plugins/polygon_2d_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index ac90ee9570..0cea26e885 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -1269,6 +1269,7 @@ Polygon2DEditor::Polygon2DEditor(EditorNode *p_editor) : uv_main_vb->add_child(uv_mode_hb); for (int i = 0; i < UV_MODE_MAX; i++) { uv_button[i] = memnew(Button); + uv_button[i]->set_flat(true); uv_button[i]->set_toggle_mode(true); uv_mode_hb->add_child(uv_button[i]); uv_button[i]->connect("pressed", callable_mp(this, &Polygon2DEditor::_uv_mode), varray(i)); |