After user feedback:

* Allow ctrl click to do negative stroke in line strokes
* Use alt for angle constraints.
This commit is contained in:
Antony Riakiotakis 2015-04-13 16:09:45 +02:00
parent 4ce437fff0
commit f27e0b7c5e

@ -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;