Fix for error while weight painting:
authorCampbell Barton <ideasman42@gmail.com>
Thu, 29 Jul 2010 12:16:15 +0000 (12:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 29 Jul 2010 12:16:15 +0000 (12:16 +0000)
 RNA_boolean_get: OperatorStrokeElement.flip not found.

flip was renamed to pen_flip but not updated everywhere.

source/blender/editors/physics/particle_edit.c
source/blender/editors/sculpt_paint/paint_vertex.c

index f463da3f6a426fdb429f7f43702e0693dcee5ca4..d491b1a973111009d6fe3a2b4b079b9beb3cd29c 100644 (file)
@@ -3336,7 +3336,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
        RNA_float_get_array(itemptr, "mouse", mousef);
        mouse[0] = mousef[0];
        mouse[1] = mousef[1];
-       flip= RNA_boolean_get(itemptr, "flip");
+       flip= RNA_boolean_get(itemptr, "pen_flip");
 
        if(bedit->first) {
                bedit->lastmouse[0]= mouse[0];
index 93555613b07ec7b11c5a11d28f3709b1eed64713..f7cc135fb75a180d207167993b8422c1fc5d326d 100644 (file)
@@ -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);