[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52787] trunk/blender/source/blender/ editors/sculpt_paint/paint_image.c: Fix #33419: incorrect color with projection painting in cases strength != 1.0

Sergey Sharybin sergey.vfx at gmail.com
Wed Dec 5 20:04:30 CET 2012


Revision: 52787
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52787
Author:   nazgul
Date:     2012-12-05 19:04:29 +0000 (Wed, 05 Dec 2012)
Log Message:
-----------
Fix #33419: incorrect color with projection painting in cases strength != 1.0

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_image.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2012-12-05 17:58:24 UTC (rev 52786)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2012-12-05 19:04:29 UTC (rev 52787)
@@ -3937,7 +3937,7 @@
 {
 	rgba_ub[0] = f_to_char(rgba[0] * rgb[0]);
 	rgba_ub[1] = f_to_char(rgba[1] * rgb[1]);
-	rgba_ub[2] = f_to_char(rgba[2] * rgb[3]);
+	rgba_ub[2] = f_to_char(rgba[2] * rgb[2]);
 	rgba_ub[3] = f_to_char(rgba[3]);
 }
 




More information about the Bf-blender-cvs mailing list