From 6414ca6510c298f278712cd483b1eefc2b33705d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 24 Jan 2024 10:13:29 +0100 Subject: [PATCH] Fix invalid assignment of a clamped color in paint Was recently introduced by #117460 Pull Request: https://projects.blender.org/blender/blender/pulls/117473 --- source/blender/editors/sculpt_paint/sculpt_paint_color.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_color.cc b/source/blender/editors/sculpt_paint/sculpt_paint_color.cc index 25de154f7a8..8975f454c3b 100644 --- a/source/blender/editors/sculpt_paint/sculpt_paint_color.cc +++ b/source/blender/editors/sculpt_paint/sculpt_paint_color.cc @@ -319,7 +319,7 @@ void do_paint_brush(PaintModeSettings *paint_mode_settings, ss->cache->wet_mix_prev_color, ss->cache->paint_brush.wet_persistence); copy_v4_v4(ss->cache->wet_mix_prev_color, wet_color); - ss->cache->wet_mix_prev_color == math::clamp(ss->cache->wet_mix_prev_color, 0.0f, 1.0f); + ss->cache->wet_mix_prev_color = math::clamp(ss->cache->wet_mix_prev_color, 0.0f, 1.0f); } }