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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user