Cleanup: simplify grease pencil preset set logic

This commit is contained in:
Campbell Barton
2021-06-10 01:55:44 +10:00
parent 5575aba025
commit bda8887e0c

View File

@@ -1400,13 +1400,11 @@ void BKE_brush_gpencil_paint_presets(Main *bmain, ToolSettings *ts, const bool r
}
/* Set default Draw brush. */
if (reset || brush_prev == NULL) {
BKE_paint_brush_set(paint, deft_draw);
if ((reset == false) && (brush_prev != NULL)) {
BKE_paint_brush_set(paint, brush_prev);
}
else {
if (brush_prev != NULL) {
BKE_paint_brush_set(paint, brush_prev);
}
BKE_paint_brush_set(paint, deft_draw);
}
}