Fix #132377: Grease Pencil: Toolbar color does not change in context menu

Use unified paint settings for "color" prop in vertex paint context menu.

Pull Request: https://projects.blender.org/blender/blender/pulls/132447
This commit is contained in:
Pratik Borhade
2025-01-06 11:29:01 +01:00
committed by Falk David
parent 96c6f543ec
commit c2a54f6858

View File

@@ -8270,8 +8270,8 @@ class VIEW3D_PT_greasepencil_vertex_paint_context_menu(Panel):
if brush.gpencil_vertex_tool in {'DRAW', 'REPLACE'}:
split = layout.split(factor=0.1)
split.prop(brush, "color", text="")
split.template_color_picker(brush, "color", value_slider=True)
split.prop(tool_settings.unified_paint_settings, "color", text="")
split.template_color_picker(tool_settings.unified_paint_settings, "color", value_slider=True)
col = layout.column()
col.separator()