Fix missing redraw when using circle select in uv editor, IRC report.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Apr 2012 13:45:24 +0000 (13:45 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Apr 2012 13:45:24 +0000 (13:45 +0000)
source/blender/editors/uvedit/uvedit_ops.c

index a30274c0f2c5fedcdc7bd6e7b49be3d6b160a02f..1f36522d3c41e4390f5ecf605e75e951be1fac2c 100644 (file)
@@ -728,7 +728,7 @@ static int nearest_uv_between(BMEditMesh *em, BMFace *efa, int UNUSED(nverts), i
        BMLoop *l;
        MLoopUV *luv;
        BMIter iter;
-       float m[3], v1[3], v2[3], c1, c2, *uv1, /* *uv2, */ /* UNUSED */ *uv3;
+       float m[3], v1[3], v2[3], c1, c2, *uv1 = NULL, /* *uv2, */ /* UNUSED */ *uv3 = NULL;
        int id1, id2, i;
 
        id1 = (id + efa->len - 1) % efa->len;
@@ -2603,9 +2603,7 @@ static int circle_select_exec(bContext *C, wmOperator *op)
        if (change) {
                uv_select_sync_flush(ts, em, select);
 
-               if (ts->uv_flag & UV_SYNC_SELECTION) {
-                       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
-               }
+               WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
        }
 
        return OPERATOR_FINISHED;