[Bf-blender-cvs] [743a67c] master: Cavity option active even in fill brushes

Antony Riakiotakis noreply at git.blender.org
Wed Feb 11 15:13:30 CET 2015


Commit: 743a67c6cba6a85467542694c9c6f88b3bf29aa7
Author: Antony Riakiotakis
Date:   Wed Feb 11 15:09:11 2015 +0100
Branches: master
https://developer.blender.org/rB743a67c6cba6a85467542694c9c6f88b3bf29aa7

Cavity option active even in fill brushes

===================================================================

M	source/blender/editors/sculpt_paint/paint_image_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 8e9661f..cce5c2c 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -4928,16 +4928,17 @@ static void project_state_init(bContext *C, Object *ob, ProjPaintState *ps, int
 	ps->clone_ima = (!ps->do_material_slots) ? 
 	                settings->imapaint.clone : NULL;
 
+	ps->do_mask_cavity = (settings->imapaint.paint.flags & PAINT_USE_CAVITY_MASK) ? true : false;
+	ps->cavity_curve = settings->imapaint.paint.cavity_curve;
+
 	/* setup projection painting data */
 	if (ps->tool != PAINT_TOOL_FILL) {
 		ps->do_backfacecull = (settings->imapaint.flag & IMAGEPAINT_PROJECT_BACKFACE) ? false : true;
 		ps->do_occlude = (settings->imapaint.flag & IMAGEPAINT_PROJECT_XRAY) ? false : true;
 		ps->do_mask_normal = (settings->imapaint.flag & IMAGEPAINT_PROJECT_FLAT) ? false : true;
-		ps->do_mask_cavity = (settings->imapaint.paint.flags & PAINT_USE_CAVITY_MASK) ? true : false;
-		ps->cavity_curve = settings->imapaint.paint.cavity_curve;
 	}
 	else {
-		ps->do_backfacecull = ps->do_occlude = ps->do_mask_normal = ps->do_mask_cavity = 0;
+		ps->do_backfacecull = ps->do_occlude = ps->do_mask_normal = 0;
 	}
 	ps->do_new_shading_nodes = BKE_scene_use_new_shading_nodes(scene); /* only cache the value */




More information about the Bf-blender-cvs mailing list