[Bf-blender-cvs] [2a28682] master: Correct check for angle-rake stroke
Campbell Barton
noreply at git.blender.org
Sat Jul 25 05:32:19 CEST 2015
Commit: 2a286829f7fa19ffceb6ec6be095ee11305353e3
Author: Campbell Barton
Date: Sat Jul 25 13:07:05 2015 +1000
Branches: master
https://developer.blender.org/rB2a286829f7fa19ffceb6ec6be095ee11305353e3
Correct check for angle-rake stroke
===================================================================
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 ece6ea7..a6d8095 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -1160,7 +1160,7 @@ int paint_stroke_modal(bContext *C, wmOperator *op, const wmEvent *event)
paint_stroke_line_constrain(stroke, mouse);
if (stroke->stroke_started && (first_modal || (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)))) {
- if ((br->mtex.brush_angle_mode & MTEX_ANGLE_RAKE) || (br->mtex.brush_angle_mode & MTEX_ANGLE_RAKE)) {
+ if ((br->mtex.brush_angle_mode & MTEX_ANGLE_RAKE) || (br->mask_mtex.brush_angle_mode & MTEX_ANGLE_RAKE)) {
copy_v2_v2(stroke->ups->last_rake, stroke->last_mouse_position);
}
paint_calculate_rake_rotation(stroke->ups, br, mouse);
More information about the Bf-blender-cvs
mailing list