From baa0bd6fbbf6d060a0a8d14b4340fad1c86539e2 Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Mon, 29 Sep 2025 18:24:51 +0200 Subject: [PATCH] Fix: Grease Pencil Sculpt shows dropdown toggle for size curve Introduced in 5b02341a11286bbf29384640843dfebfafd5a024 Pull Request: https://projects.blender.org/blender/blender/pulls/146778 --- scripts/startup/bl_ui/properties_paint_common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/startup/bl_ui/properties_paint_common.py b/scripts/startup/bl_ui/properties_paint_common.py index e25c9d8b285..a18cf655496 100644 --- a/scripts/startup/bl_ui/properties_paint_common.py +++ b/scripts/startup/bl_ui/properties_paint_common.py @@ -1080,6 +1080,7 @@ def brush_shared_settings(layout, context, brush, popover=False): blend_mode = False size = False size_mode = False + size_pressure = False strength = False strength_pressure = False size_pressure = False @@ -1170,6 +1171,11 @@ def brush_shared_settings(layout, context, brush, popover=False): if size: pressure_name = "use_pressure_size" if size_pressure else None curve_visibility_name = "show_size_curve" if size_pressure else None + # Grease Pencil Sculpt uses size pressure but doesn't map to a custom curve, this is a weird case where we + # don't show the dropdown but do show the pressure toggle. + # TODO: Add curve support for GP Sculpt + if mode == 'SCULPT_GREASE_PENCIL': + curve_visibility_name = None UnifiedPaintPanel.prop_unified( layout, context,