Browse Source

Merge pull request #43192 from YeldhamDev/poly2deditor_buttons_flat

Set previous tool buttons in the Polygon2D editor to be flat again
Rémi Verschelde 4 năm trước cách đây
mục cha
commit
9ab6cef2ad
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/plugins/polygon_2d_editor_plugin.cpp

+ 1 - 0
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));