Fix #145785: Snake Hook strength pressure curve is visible

Introduced with 5f8311f596

Pull Request: https://projects.blender.org/blender/blender/pulls/145816
This commit is contained in:
Sean Kim
2025-09-05 23:15:52 +02:00
committed by Sean Kim
parent eae4585177
commit 007c31ed4b

View File

@@ -1178,7 +1178,7 @@ def brush_shared_settings(layout, context, brush, popover=False):
slider=True,
)
if mode in {'PAINT_TEXTURE', 'PAINT_2D', 'SCULPT', 'PAINT_VERTEX', 'PAINT_WEIGHT', 'SCULPT_CURVES'}:
if brush.use_pressure_strength:
if strength_pressure and brush.use_pressure_strength:
layout.template_curve_mapping(brush, "curve_strength", brush=True, use_negative_slope=True)
layout.separator()