Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2010-07-26 23:29:21 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2010-07-26 23:29:21 +0400
commitb69158dc0250fa142f5762dea15a64b241d47b91 (patch)
tree972507d549f64fbce7cbe515a9ab8d0da985f031 /source/blender
parentcc9dbc7ac259e6f8547a58904bf5f834e14d58bc (diff)
Fix: Overlay should draw areas that will be affected transparently and areas that will not be effected opaquely.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 5eeb8492019..b0e41393bd8 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -376,7 +376,7 @@ int load_tex(Sculpt *sd, Brush* br, ViewContext* vc)
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 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *unused)
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);