diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:32:51 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:32:51 +0400 |
commit | 51010f50351a5115122dc64e02a5a9b2c76c4edb (patch) | |
tree | 4a6fab70dd88d012f14ccf003a7c7aaef4e42e52 /source/blender/editors/sculpt_paint/paint_stroke.c | |
parent | 157244b13cf61d5889f5714167c6e5468ae35b15 (diff) |
Allow hiding separate hiding of overlays on stroke.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index d754567bd99..7133585f41d 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -434,15 +434,14 @@ PaintStroke *paint_stroke_new(bContext *C, stroke->done = done; stroke->event_type = event_type; /* for modal, return event */ - if (br->overlay_flags & BRUSH_OVERLAY_OVERRIDE_ON_STROKE) - BKE_paint_set_overlay_override(true); + BKE_paint_set_overlay_override(br->overlay_flags); return stroke; } void paint_stroke_data_free(struct wmOperator *op) { - BKE_paint_set_overlay_override(false); + BKE_paint_set_overlay_override(0); MEM_freeN(op->customdata); op->customdata = NULL; } |