Fix #123396: GPencil: Show brush options for GPv3 #123412

Merged
Falk David merged 2 commits from ChengduLittleA/blender:fix-123396 into main 2024-06-24 13:47:19 +02:00
Showing only changes of commit 477e26a3aa - Show all commits

View File

@ -104,7 +104,7 @@ class GreasePencilDisplayPanel:
settings = tool_settings.gpencil_sculpt_paint
elif context.mode == 'WEIGHT_GPENCIL' or context.mode == 'WEIGHT_GREASE_PENCIL':
settings = tool_settings.gpencil_weight_paint
elif context.mode == 'VERTEX_GPENCIL' or context.mode == 'VERTEX_GREASE_PENCIL':
elif context.mode == 'VERTEX_GPENCIL':
ChengduLittleA marked this conversation as resolved Outdated

VERTEX_GREASE_PENCIL? does not exist AFAIK 🙃

`VERTEX_GREASE_PENCIL`? does not exist AFAIK 🙃

Ah thanks! Interesting, indeed! Will remove this part.

Ah thanks! Interesting, indeed! Will remove this part.
settings = tool_settings.gpencil_vertex_paint
brush = settings.brush
gp_settings = brush.gpencil_settings
@ -139,7 +139,7 @@ class GreasePencilDisplayPanel:
col.prop(brush, "cursor_color_add", text="Cursor Color")
elif ob.mode == 'VERTEX_GPENCIL' or ob.mode == 'VERTEX_GREASE_PENCIL':
elif ob.mode == 'VERTEX_GPENCIL':
row = layout.row(align=True)
row.prop(settings, "show_brush", text="Display Cursor")