GPv3: Topbar layers panel in vertex paint mode

Expose topbar layer panel in vertex paint mode.

Pull Request: https://projects.blender.org/blender/blender/pulls/127851
This commit is contained in:
Pratik Borhade
2024-09-19 14:02:05 +02:00
committed by Falk David
parent 38e15412dd
commit 8badadd52f

View File

@@ -239,7 +239,7 @@ class VIEW3D_HT_tool_header(Header):
panel="TOPBAR_PT_gpencil_layers",
text=text,
)
elif mode_string in {'EDIT_GREASE_PENCIL', 'PAINT_GREASE_PENCIL', 'SCULPT_GREASE_PENCIL', 'WEIGHT_GREASE_PENCIL'}:
elif mode_string in {'EDIT_GREASE_PENCIL', 'PAINT_GREASE_PENCIL', 'SCULPT_GREASE_PENCIL', 'WEIGHT_GREASE_PENCIL', 'VERTEX_GREASE_PENCIL'}:
layer = context.object.data.layers.active
group = context.object.data.layer_groups.active
text = "Layer"