[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30768] trunk/blender/source/blender/ editors/sculpt_paint/paint_stroke.c: Fix: Overlay should draw areas that will be affected transparently and areas that will not be effected opaquely .

Jason Wilkins Jason.A.Wilkins at gmail.com
Mon Jul 26 21:29:22 CEST 2010


Revision: 30768
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30768
Author:   jwilkins
Date:     2010-07-26 21:29:21 +0200 (Mon, 26 Jul 2010)

Log Message:
-----------
Fix: Overlay should draw areas that will be affected transparently and areas that will not be effected opaquely.

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

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c	2010-07-26 19:07:33 UTC (rev 30767)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c	2010-07-26 19:29:21 UTC (rev 30768)
@@ -376,7 +376,7 @@
 					if (br->mtex.brush_map_mode == MTEX_MAP_MODE_FIXED)
 						avg *= brush_curve_strength(br, len, 1); /* Falloff curve */
 
-					buffer[index] = (GLubyte)(255*avg);
+					buffer[index] = 255 - (GLubyte)(255*avg);
 				}
 				else {
 					buffer[index] = 0;
@@ -540,7 +540,7 @@
 
 	view3d_set_viewcontext(C, &vc);
 
-	if (vc.obact->sculpt) {
+	if (0 && vc.obact->sculpt) {
 		Paint *paint = paint_get_active(CTX_data_scene(C));
 		Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
 		Brush *brush = paint_brush(paint);





More information about the Bf-blender-cvs mailing list