Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-10 10:56:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-10 10:56:28 +0400
commitaa3b531839fe7d95a829a028c3a5d3a47c38df02 (patch)
tree63cbaccd6387bc17fcad9e71e4d45503193020d7
parent1fd55c3130e7f8bcc0bcf2deef839a2b2641f367 (diff)
fix for using uninitialized stack memory in mesh_foreachScreenFace__mapFunc(), used for face selection.
-rw-r--r--source/blender/editors/space_view3d/drawobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index b84998e6b83..df1c743b5cd 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1775,7 +1775,9 @@ static void mesh_foreachScreenFace__mapFunc(void *userData, int index, float *ce
if (efa && efa->h==0 && efa->fgonf!=EM_FGON) {
view3d_project_short_clip(data->vc.ar, cent, s, 1);
- data->func(data->userData, efa, s[0], s[1], index);
+ if (s[0] != IS_CLIPPED) {
+ data->func(data->userData, efa, s[0], s[1], index);
+ }
}
}