[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52998] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: Fix #33532: vertex paint subtract mode was broken, always resulting in black.
Brecht Van Lommel
brechtvanlommel at pandora.be
Fri Dec 14 13:01:03 CET 2012
Revision: 52998
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52998
Author: blendix
Date: 2012-12-14 12:00:59 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
Fix #33532: vertex paint subtract mode was broken, always resulting in black.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-12-14 09:47:05 UTC (rev 52997)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-12-14 12:00:59 UTC (rev 52998)
@@ -657,11 +657,11 @@
cp = (unsigned char *)&col;
temp = cp1[0] - ((fac * cp2[0]) / 255);
- cp1[0] = (temp < 0) ? 0 : temp;
+ cp[0] = (temp < 0) ? 0 : temp;
temp = cp1[1] - ((fac * cp2[1]) / 255);
- cp1[1] = (temp < 0) ? 0 : temp;
+ cp[1] = (temp < 0) ? 0 : temp;
temp = cp1[2] - ((fac * cp2[2]) / 255);
- cp1[2] = (temp < 0) ? 0 : temp;
+ cp[2] = (temp < 0) ? 0 : temp;
cp[3] = 255;
return col;
More information about the Bf-blender-cvs
mailing list