Fix invalid assignment of a clamped color in paint

Was recently introduced by #117460

Pull Request: https://projects.blender.org/blender/blender/pulls/117473
This commit is contained in:
Sergey Sharybin
2024-01-24 10:13:29 +01:00
committed by Sergey Sharybin
parent 70a8a9e4d9
commit 6414ca6510

View File

@@ -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);
}
}