Fix: Grease Pencil panels / buttons not displaying

Introduced with a combination of 6957242a53 and 4434a30d40

Pull Request: https://projects.blender.org/blender/blender/pulls/144654
This commit is contained in:
Sean Kim
2025-08-18 00:27:35 +02:00
committed by Sean Kim
parent dba072ef93
commit 1c8bee7da2
2 changed files with 2 additions and 2 deletions

View File

@@ -1625,7 +1625,7 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False)
tool_settings = context.tool_settings
settings = tool_settings.gpencil_paint
gp_settings = brush.gpencil_settings
ups = tool_settings.unified_paint_settings
ups = settings.unified_paint_settings
brush_prop_owner = ups if ups.use_unified_size else brush
tool = context.workspace.tools.from_space_view3d_mode(context.mode, create=False)
if gp_settings is None:

View File

@@ -8570,7 +8570,7 @@ class VIEW3D_PT_greasepencil_vertex_paint_context_menu(Panel):
row.prop(brush, "use_pressure_size", text="", icon='STYLUS_PRESSURE')
if brush.gpencil_vertex_brush_type in {'DRAW', 'BLUR', 'SMEAR'}:
ups = tool_settings.unified_paint_settings
ups = settings.unified_paint_settings
strength_owner = ups if ups.use_unified_strength else brush
row = layout.row(align=True)
row.prop(strength_owner, "strength", text="")