diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-26 23:29:21 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-26 23:29:21 +0400 |
commit | b69158dc0250fa142f5762dea15a64b241d47b91 (patch) | |
tree | 972507d549f64fbce7cbe515a9ab8d0da985f031 /source/blender | |
parent | cc9dbc7ac259e6f8547a58904bf5f834e14d58bc (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.c | 4 |
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); |