2.5/Sculpt:
[blender.git] / source / blender / editors / sculpt_paint / paint_stroke.c
index 1167e011c865361b9aabb9345f8317e818be24d6..715399af88805f4151d4ead5dc8efba3505ccb81 100644 (file)
@@ -265,6 +265,21 @@ int paint_stroke_modal(bContext *C, wmOperator *op, wmEvent *event)
                return OPERATOR_RUNNING_MODAL;
 }
 
+int paint_stroke_exec(bContext *C, wmOperator *op)
+{
+       PaintStroke *stroke = op->customdata;
+
+       RNA_BEGIN(op->ptr, itemptr, "stroke") {
+               stroke->update_step(C, stroke, &itemptr);
+       }
+       RNA_END;
+
+       MEM_freeN(stroke);
+       op->customdata = NULL;
+
+       return OPERATOR_FINISHED;
+}
+
 ViewContext *paint_stroke_view_context(PaintStroke *stroke)
 {
        return &stroke->vc;