Initial Grease Pencil 3.0 stage #106848
|
@ -138,12 +138,14 @@ static bool gpencil_stroke_weightmode_poll_with_tool(bContext *C, const char gpe
|
||||||
/* Poll callback for stroke painting (draw brush) */
|
/* Poll callback for stroke painting (draw brush) */
|
||||||
static bool gpencil_stroke_paintmode_draw_poll(bContext *C)
|
static bool gpencil_stroke_paintmode_draw_poll(bContext *C)
|
||||||
{
|
{
|
||||||
Object *object = CTX_data_active_object(C);
|
if (U.experimental.use_grease_pencil_version3) {
|
||||||
if (object == NULL || object->type != OB_GREASE_PENCIL) {
|
Object *object = CTX_data_active_object(C);
|
||||||
return false;
|
if (object == NULL || object->type != OB_GREASE_PENCIL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
return gpencil_stroke_paintmode_poll_with_tool(C, GPAINT_TOOL_DRAW);
|
||||||
// return gpencil_stroke_paintmode_poll_with_tool(C, GPAINT_TOOL_DRAW);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Poll callback for stroke painting (erase brush) */
|
/* Poll callback for stroke painting (erase brush) */
|
||||||
|
|
Loading…
Reference in New Issue