GPencil: Don't convert color to sRGB

The color is linear, so the conversion is breaking the real color.
This commit is contained in:
Antonio Vazquez 2020-08-27 20:13:41 +02:00
parent e74a24f0bb
commit 0649ed7fa2
1 changed files with 2 additions and 2 deletions

View File

@ -2238,12 +2238,12 @@ static Material *gpencil_add_material(Main *bmain,
gp_style->flag |= GP_MATERIAL_STROKE_SHOW;
}
else {
linearrgb_to_srgb_v4(gp_style->stroke_rgba, color);
copy_v4_v4(gp_style->stroke_rgba, color);
gp_style->flag &= ~GP_MATERIAL_STROKE_SHOW;
}
/* Fill color. */
linearrgb_to_srgb_v4(gp_style->fill_rgba, color);
copy_v4_v4(gp_style->fill_rgba, color);
if (use_fill) {
gp_style->flag |= GP_MATERIAL_FILL_SHOW;
}