Commit: a03922f02347a0d16a6580f38fdb7dc76b887f53
Author: Darshan Kadu
Date:   Sat Jun 10 14:13:31 2017 +0530
Branches: soc-2017-vertex_paint
https://developer.blender.org/rBa03922f02347a0d16a6580f38fdb7dc76b887f53

corrected typo mistake in difference blend mode

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

M       source/blender/editors/sculpt_paint/paint_vertex.c

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

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c 
b/source/blender/editors/sculpt_paint/paint_vertex.c
index 90127633bcc..261cd1aeb7d 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -781,7 +781,7 @@ BLI_INLINE unsigned int mcol_difference(unsigned int col1, 
unsigned int col2, in
 
        temp = abs(cp1[0] - cp2[0]);
        cp[0] = (mfac * cp1[0] + temp * fac) / 255;
-       temp = abs(cp1[0] - cp2[0]);
+       temp = abs(cp1[1] - cp2[1]);
        cp[1] = (mfac * cp1[1] + temp * fac) / 255;
        temp = abs(cp1[2] - cp2[2]);
        cp[2] = (mfac * cp1[2] + temp * fac) / 255;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to