diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-02-18 07:43:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-02-18 07:43:12 +0300 |
commit | 21925c6f47bebba547e30ee81a199dd761912b60 (patch) | |
tree | 42cf3bf582b600862c81bab62ccb0e75665d0094 /source | |
parent | 7a9688179580e3b1008941f339bdc906fa544360 (diff) |
uninitialized variable used in mesh_foreachScreenVert__mapFunc
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/drawobject.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 551ce874db8..ad9120e42e7 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -1196,15 +1196,18 @@ static void mesh_foreachScreenVert__mapFunc(void *userData, int index, float *co { struct { void (*func)(void *userData, EditVert *eve, int x, int y, int index); void *userData; int clipVerts; float pmat[4][4], vmat[4][4]; } *data = userData; EditVert *eve = EM_get_vert_for_index(index); - short s[2]; if (eve->h==0) { + short s[2]= {IS_CLIPPED, 0}; if (data->clipVerts) { view3d_project_short_clip(curarea, co, s, data->pmat, data->vmat); } else { view3d_project_short_noclip(curarea, co, s, data->pmat); } - + + if (s[0]==IS_CLIPPED) + return; + data->func(data->userData, eve, s[0], s[1], index); } } |