[Bf-blender-cvs] [7c4fc7066f8] greasepencil-object: GPencil: Improve color blending in Tint

Antonio Vazquez noreply at git.blender.org
Sat Nov 2 17:24:56 CET 2019


Commit: 7c4fc7066f86e7692594554703f63de1020f9608
Author: Antonio Vazquez
Date:   Sat Nov 2 17:17:14 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB7c4fc7066f86e7692594554703f63de1020f9608

GPencil: Improve color blending in Tint

===================================================================

M	source/blender/editors/gpencil/gpencil_tint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_tint.c b/source/blender/editors/gpencil/gpencil_tint.c
index 1afc6922905..2410bff2caa 100644
--- a/source/blender/editors/gpencil/gpencil_tint.c
+++ b/source/blender/editors/gpencil/gpencil_tint.c
@@ -225,7 +225,7 @@ static bool brush_tint_apply(tGP_BrushTintData *gso,
   CLAMP(alpha, 0.0f, 1.0f);
 
   /* Apply color to point. */
-  copy_v3_v3(pt->mix_color, brush->rgb);
+  interp_v3_v3v3(pt->mix_color, pt->mix_color, brush->rgb, inf);
   pt->mix_color[3] = alpha;
 
   return true;



More information about the Bf-blender-cvs mailing list