From 98bf7a8d7a9e499fa103e57302b2d0dbaffc5b20 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 8 Feb 2024 14:48:45 +0100 Subject: [PATCH] Fix #116188: hair puff works incorrect with symmetry Originally caused by 1b19f62917 . Solution is the same as ff7b8f341260 Only this time it does the same thing `Sphere` falloff (whereas ff7b8f341260 fixed it for `Projected` falloff) Pull Request: https://projects.blender.org/blender/blender/pulls/117987 --- source/blender/editors/sculpt_paint/curves_sculpt_puff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc b/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc index c3c7345addd..44bb72cfd62 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc @@ -260,7 +260,7 @@ struct PuffOperationExecutor { brush_, dist_to_brush_cu, brush_radius_cu); math::max_inplace(max_weight, radius_falloff); } - r_curve_weights[curve_i] = max_weight; + math::max_inplace(r_curve_weights[curve_i], max_weight); }); }