code cleanup: use const events for modal and invoke operators.
[blender.git] / source / blender / editors / sculpt_paint / paint_utils.c
index 6fb2361022d417b65b2d11883baa51902029d614..19c061996e733d1e2f5f2a41a045c68a5526ecb0 100644 (file)
@@ -414,7 +414,7 @@ void PAINT_OT_face_select_linked(wmOperatorType *ot)
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 }
 
-static int paint_select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *event)
+static int paint_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 {
        int mode = RNA_boolean_get(op->ptr, "extend") ? 1 : 0;
        paintface_select_linked(C, CTX_data_active_object(C), event->mval, mode);