Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-27 21:13:41 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-27 21:13:51 +0300
commit0649ed7fa2e598796e92582c76d1e9cb2b4c10cf (patch)
tree68634d4d525edb0fcba67d55299ef4079e9088a5
parente74a24f0bbf386b680c510a720fbc1da8292fc4c (diff)
GPencil: Don't convert color to sRGB
The color is linear, so the conversion is breaking the real color.
-rw-r--r--source/blender/blenkernel/intern/gpencil_geom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c
index 65ce117431b..4226e65d8fa 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.c
+++ b/source/blender/blenkernel/intern/gpencil_geom.c
@@ -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;
}