diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-04-25 23:24:22 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-04-25 23:24:22 +0300 |
commit | c20b99b70c84f089277fa1615efea733b338cdd0 (patch) | |
tree | a135a89c0028c3edbd2baaded81cca80fbc54d15 | |
parent | a8331d8c9df4d5fc861c381ea153d9e76c603fda (diff) |
Vertex Paint: Fix brush color space
The brush color wasn't being converted
to scene linear space properly.
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.cc b/source/blender/editors/sculpt_paint/paint_vertex.cc index 1d78f03fe6f..1ae9f7a8afb 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.cc +++ b/source/blender/editors/sculpt_paint/paint_vertex.cc @@ -332,6 +332,8 @@ static Color vpaint_get_current_col(Scene *scene, VPaint *vp, bool secondary) const float *brush_color = secondary ? BKE_brush_secondary_color_get(scene, brush) : BKE_brush_color_get(scene, brush); copy_v3_v3(color, brush_color); + IMB_colormanagement_srgb_to_scene_linear_v3(color); + color[3] = 1.0f; /* alpha isn't used, could even be removed to speedup paint a little */ return fromFloat<Color>(ColorPaint4f(color)); |