paint: add clear button to select tool

This commit is contained in:
luboslenco
2026-07-01 12:07:06 +02:00
parent 8fe3129a73
commit 69b0dc7a8e
+8
View File
@@ -552,6 +552,14 @@ void ui_header_draw_tool_properties() {
} }
} }
} }
else if (g_context->tool == TOOL_TYPE_SELECT) {
g_ui->enabled = g_context->select_active;
if (ui_icon_button(tr("Clear"), ICON_ERASE, UI_ALIGN_CENTER)) {
g_context->select_active = false;
make_material_parse_paint_material(false);
}
g_ui->enabled = true;
}
if (g_context->tool == TOOL_TYPE_CURSOR) { if (g_context->tool == TOOL_TYPE_CURSOR) {
// if (!sim_running && ui_button("Play")) { // if (!sim_running && ui_button("Play")) {