soc-2008-mxcurioni: merged changes to revision 23516
[blender.git] / source / blender / editors / sculpt_paint / paint_stroke.c
index bd9ea50e0f8a3fd221b7a92a94fd45c5f6759334..b83352ae70cc1155230ca21221a5a0962539492b 100644 (file)
@@ -263,7 +263,7 @@ int paint_stroke_modal(bContext *C, wmOperator *op, wmEvent *event)
        }
 
        /* TODO: fix hardcoded event here */
-       if(event->type == LEFTMOUSE && event->val == 0) {
+       if(event->type == LEFTMOUSE && event->val == KM_RELEASE) {
                /* Exit stroke, free data */
 
                if(stroke->smooth_stroke_cursor)