Fix #105450: Resolve box selection issue in Metal #107135

Merged
Jeroen Bakker merged 2 commits from Jason-Fielder/blender:Fix_105450 into main 2023-04-20 08:48:09 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit daece99763 - Show all commits

View File

@ -725,7 +725,9 @@ static int gpencil_vertexmode_toggle_exec(bContext *C, wmOperator *op)
}
if (mode == OB_MODE_VERTEX_GPENCIL) {
/* Be sure we have brushes. */
/* Be sure we have brushes.
* Need Draw as well (used for Palettes). */
BKE_paint_ensure(ts, (Paint **)&ts->gp_paint);
BKE_paint_ensure(ts, (Paint **)&ts->gp_vertexpaint);
const bool reset_mode = (ts->gp_vertexpaint->paint.brush == NULL);