GPv3: Show select operators in vertex paint mode

They are greyed out due to wrong poll function.

Pull Request: https://projects.blender.org/blender/blender/pulls/128364
This commit is contained in:
Pratik Borhade
2024-09-30 14:31:27 +02:00
committed by Falk David
parent 6d8e642367
commit 45813afbc0

View File

@@ -42,7 +42,11 @@ bool editable_grease_pencil_poll(bContext *C)
if (!ED_operator_object_active_editable_ex(C, object)) {
return false;
}
if (!ELEM(object->mode, OB_MODE_EDIT, OB_MODE_SCULPT_GPENCIL_LEGACY)) {
if (!ELEM(object->mode,
OB_MODE_EDIT,
OB_MODE_SCULPT_GPENCIL_LEGACY,
OB_MODE_VERTEX_GPENCIL_LEGACY))
{
return false;
}
return true;