[Bf-blender-cvs] [f27e0b7] master: After user feedback:

Antony Riakiotakis noreply at git.blender.org
Mon Apr 13 16:31:13 CEST 2015


Commit: f27e0b7c5e9d9ac1d80fc6b86d29ea96e971708d
Author: Antony Riakiotakis
Date:   Mon Apr 13 16:09:45 2015 +0200
Branches: master
https://developer.blender.org/rBf27e0b7c5e9d9ac1d80fc6b86d29ea96e971708d

After user feedback:

* Allow ctrl click to do negative stroke in line strokes
* Use alt for angle constraints.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 5588d1e..f5a65be 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -673,7 +673,7 @@ PaintStroke *paint_stroke_new(bContext *C,
 
 	if (stroke->stroke_mode == BRUSH_STROKE_INVERT)
 	{
-		if (br->flag & (BRUSH_CURVE | BRUSH_LINE)) {
+		if (br->flag & (BRUSH_CURVE)) {
 			RNA_enum_set(op->ptr, "mode", BRUSH_STROKE_NORMAL);
 		}
 	}
@@ -1129,7 +1129,7 @@ int paint_stroke_modal(bContext *C, wmOperator *op, const wmEvent *event)
 		return OPERATOR_FINISHED;
 	}
 	else if (br->flag & BRUSH_LINE) {
-		if (event->ctrl)
+		if (event->alt)
 			stroke->constrain_line = true;
 		else 
 			stroke->constrain_line = false;




More information about the Bf-blender-cvs mailing list