diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-29 21:35:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 21:35:34 +0100 |
commit | 9ab6cef2ad1b6a3fa6a17950ff8e5a8570f208e2 (patch) | |
tree | c049a42a0d1222daa27f45854c1d798d552d3128 /editor | |
parent | 6bdcaff1e2bb86f119291f5a4932f27276762345 (diff) | |
parent | 3b0cb48bcd3ee63b7ae59475f1d6295d654a9786 (diff) |
Merge pull request #43192 from YeldhamDev/poly2deditor_buttons_flat
Set previous tool buttons in the Polygon2D editor to be flat again
Diffstat (limited to 'editor')
-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 23c358a797..0ccca7e06c 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)); |