diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-29 16:16:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-29 16:16:15 +0400 |
commit | ab7c879963fbfee436c03ff49849258c5b10d726 (patch) | |
tree | 48fa513a5839b66a72b820dfbbb62af5e651ef4e /source/blender/editors/sculpt_paint | |
parent | 365a4b4dcc56d447120c4edda79f185047322c4d (diff) |
Fix for error while weight painting:
RNA_boolean_get: OperatorStrokeElement.flip not found.
flip was renamed to pen_flip but not updated everywhere.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 93555613b07..f7cc135fb75 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1445,7 +1445,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P /* load projection matrix */ mul_m4_m4m4(mat, ob->obmat, vc->rv3d->persmat); - flip = RNA_boolean_get(itemptr, "flip"); + flip = RNA_boolean_get(itemptr, "pen_flip"); pressure = RNA_float_get(itemptr, "pressure"); RNA_float_get_array(itemptr, "mouse", mval); mval[0]-= vc->ar->winrct.xmin; @@ -1860,7 +1860,7 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P float pressure, mval[2]; RNA_float_get_array(itemptr, "mouse", mval); - flip = RNA_boolean_get(itemptr, "flip"); + flip = RNA_boolean_get(itemptr, "pen_flip"); pressure = RNA_float_get(itemptr, "pressure"); view3d_operator_needs_opengl(C); |