Fix: Sculpt: Clay strips brush ignores hardness

Fix in 690d89089f was incomplete, did not
affect Dyntopo and Multires

Pull Request: https://projects.blender.org/blender/blender/pulls/128332
This commit is contained in:
Sean Kim
2024-09-29 21:08:01 +02:00
committed by Sean Kim
parent 4bc146f00a
commit 60acd02cf9

View File

@@ -128,6 +128,7 @@ static void calc_grids(const Depsgraph &depsgraph,
const MutableSpan<float> distances = tls.distances;
calc_brush_cube_distances(brush, mat, positions, distances, factors);
filter_distances_with_radius(1.0f, distances, factors);
apply_hardness_to_distances(1.0f, cache.hardness, distances);
BKE_brush_calc_curve_factors(
eBrushCurvePreset(brush.curve_preset), brush.curve, distances, 1.0f, factors);
@@ -183,6 +184,7 @@ static void calc_bmesh(const Depsgraph &depsgraph,
const MutableSpan<float> distances = tls.distances;
calc_brush_cube_distances(brush, mat, positions, distances, factors);
filter_distances_with_radius(1.0f, distances, factors);
apply_hardness_to_distances(1.0f, cache.hardness, distances);
BKE_brush_calc_curve_factors(
eBrushCurvePreset(brush.curve_preset), brush.curve, distances, 1.0f, factors);