GPv3: Add separate paint mode #109453
|
@ -139,18 +139,6 @@ static bool gpencil_stroke_weightmode_poll_with_tool(bContext *C, const char gpe
|
|||
/* Poll callback for stroke painting (draw brush) */
|
||||
static bool gpencil_stroke_paintmode_draw_poll(bContext *C)
|
||||
{
|
||||
// if (U.experimental.use_grease_pencil_version3) {
|
||||
// Object *object = CTX_data_active_object(C);
|
||||
// if (object == NULL || object->type != OB_GREASE_PENCIL) {
|
||||
// return false;
|
||||
// }
|
||||
// ToolSettings *ts = CTX_data_tool_settings(C);
|
||||
// if (!ts || !ts->gp_paint) {
|
||||
// return false;
|
||||
// }
|
||||
// const Brush *brush = BKE_paint_brush_for_read(&ts->gp_paint->paint);
|
||||
// return WM_toolsystem_active_tool_is_brush(C) && brush->gpencil_tool == GPAINT_TOOL_DRAW;
|
||||
// }
|
||||
return gpencil_stroke_paintmode_poll_with_tool(C, GPAINT_TOOL_DRAW);
|
||||
filedescriptor marked this conversation as resolved
Outdated
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Why is this commented out? Best to remove it, or finish the change here?