GPv3: Add separate paint mode #109453

Merged
Falk David merged 5 commits from filedescriptor/blender:gpv3-paint-mode into main 2023-07-03 16:34:37 +02:00
1 changed files with 0 additions and 12 deletions
Showing only changes of commit 345e96ae0e - Show all commits

View File

@ -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

Why is this commented out? Best to remove it, or finish the change here?

Why is this commented out? Best to remove it, or finish the change here?
}