Grease Pencil: Add Sample Color operator to Vertex Color Mode

This PR adds the `sample_color` operator to Grease Pencil Vertex Paint
Mode.

Pull Request: https://projects.blender.org/blender/blender/pulls/146951
This commit is contained in:
Casey Bianco-Davis
2025-10-12 01:45:13 +02:00
committed by casey-bianco-davis
parent 152405489d
commit 9496d941fd
3 changed files with 5 additions and 1 deletions

View File

@@ -483,7 +483,8 @@ static wmOperatorStatus sample_color_modal(bContext *C, wmOperator *op, const wm
static bool sample_color_poll(bContext *C)
{
return (image_paint_poll_ignore_tool(C) || vertex_paint_poll_ignore_tool(C) ||
blender::ed::greasepencil::grease_pencil_painting_poll(C));
blender::ed::greasepencil::grease_pencil_painting_poll(C) ||
blender::ed::greasepencil::grease_pencil_vertex_painting_poll(C));
}
void PAINT_OT_sample_color(wmOperatorType *ot)