Classical mistake - fix a bug in 1 feature, but don't test the related ones :/
authorTon Roosendaal <ton@blender.org>
Sat, 15 Dec 2012 10:53:35 +0000 (10:53 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 15 Dec 2012 10:53:35 +0000 (10:53 +0000)
Previous commit broke dragging area edges.

source/blender/editors/screen/screen_ops.c

index 2e6cb420974b586a672bbf194ae4777a021263d4..df7b2f73c256b713904d01c1ca71e9a657d8749e 100644 (file)
@@ -1001,6 +1001,7 @@ static int area_move_init(bContext *C, wmOperator *op)
        bScreen *sc = CTX_wm_screen(C);
        ScrEdge *actedge;
        sAreaMoveData *md;
+       ScrVert *v1;
        int x, y;
        
        /* required properties */
@@ -1019,7 +1020,11 @@ static int area_move_init(bContext *C, wmOperator *op)
        else md->origval = actedge->v1->vec.x;
        
        select_connected_scredge(sc, actedge);
-       /* now all vertices with 'flag==1' are the ones that can be moved. */
+       /* now all vertices with 'flag==1' are the ones that can be moved. Move this to editflag */
+       for (v1 = sc->vertbase.first; v1; v1 = v1->next)
+               if (v1->flag)
+                       v1->editflag = 1;
+
        
        area_move_set_limits(sc, md->dir, &md->bigger, &md->smaller);