Small change to keep MSVC happy -- defined variable at the start of a conditional...
authorSimon Clitherow <aphex@nildram.co.uk>
Mon, 1 Jan 2007 11:30:47 +0000 (11:30 +0000)
committerSimon Clitherow <aphex@nildram.co.uk>
Mon, 1 Jan 2007 11:30:47 +0000 (11:30 +0000)
source/blender/src/editmesh_mods.c

index 762a9e4fcbdddbf9973e704882ae9c0472e2d32a..eb150a2ea5554291b8d74f080b200e71490cce07 100644 (file)
@@ -383,11 +383,12 @@ EditVert *findnearestvert(int *dist, short sel, short strict)
        if(G.vd->drawtype>OB_WIRE && (G.vd->flag & V3D_ZBUF_SELECT)){
                int distance;
                unsigned int index;
+               EditVert *eve;
                
                if(strict) index = sample_backbuf_rect(mval, 50, em_wireoffs, 0xFFFFFF, &distance, strict, findnearestvert__backbufIndextest); 
                else index = sample_backbuf_rect(mval, 50, em_wireoffs, 0xFFFFFF, &distance, 0, NULL); 
                
-               EditVert *eve = BLI_findlink(&G.editMesh->verts, index-1);
+               eve = BLI_findlink(&G.editMesh->verts, index-1);
                
                if(eve && distance < *dist) {
                        *dist = distance;