diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2007-01-01 14:30:47 +0300 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2007-01-01 14:30:47 +0300 |
commit | 9a102223a2d1facb83340afc20a018d484dc12f7 (patch) | |
tree | f87b9c954bda3553b9f60607e7b64c9a4bbf3eb7 /source/blender/src/editmesh_mods.c | |
parent | d48a472fe5f77ed63dc33e2c6f1104af107baef3 (diff) |
Small change to keep MSVC happy -- defined variable at the start of a conditional block.
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r-- | source/blender/src/editmesh_mods.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c index 762a9e4fcbd..eb150a2ea55 100644 --- a/source/blender/src/editmesh_mods.c +++ b/source/blender/src/editmesh_mods.c @@ -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; |