Fix: Reset Curve applies incorrect slope

Missed in 635f42c023

Pull Request: https://projects.blender.org/blender/blender/pulls/146846
This commit is contained in:
Sean Kim
2025-09-26 16:58:33 +02:00
committed by Sean Kim
parent d94474a2ef
commit 31dfbc4bef
2 changed files with 2 additions and 3 deletions

View File

@@ -8996,8 +8996,7 @@ class VIEW3D_PT_curves_sculpt_parameter_falloff(Panel):
layout.template_curve_mapping(
brush.curves_sculpt_settings,
"curve_parameter_falloff",
brush=True,
use_negative_slope=True)
brush=True)
row = layout.row(align=True)
row.operator("brush.sculpt_curves_falloff_preset", icon='SMOOTHCURVE', text="").shape = 'SMOOTH'
row.operator("brush.sculpt_curves_falloff_preset", icon='SPHERECURVE', text="").shape = 'ROUND'

View File

@@ -872,7 +872,7 @@ class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel):
col.prop(brush, "curve_distance_falloff_preset", expand=True)
if brush.curve_distance_falloff_preset == 'CUSTOM':
layout.template_curve_mapping(brush, "curve_distance_falloff", brush=True)
layout.template_curve_mapping(brush, "curve_distance_falloff", brush=True, use_negative_slope=True)
col = layout.column(align=True)
row = col.row(align=True)