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:
authorGeoffrey Bantle <hairbat@yahoo.com>2007-01-01 12:41:10 +0300
committerGeoffrey Bantle <hairbat@yahoo.com>2007-01-01 12:41:10 +0300
commitd48a472fe5f77ed63dc33e2c6f1104af107baef3 (patch)
tree827dbeae6a8f99839bba2abcd45cb10c534c1677 /source/blender/src/editface.c
parentc96e3e6e7d3c9a9005dea86db635d602bdc383c8 (diff)
-> Fix for bug #5472
Vertex snapping now works with backbuffered selection modes. Previously backbuffer sampling had no way to check whether or not the indices that it retrieved were selected or not. To resolve this I added two optional arguments to sample_backbuf_rect in drawview.c. The first argument tells the function that some additional testing of the retrieved index values needs to be done and the second argument is a pointer to a function to do the testing. findnearestvert() in editmesh_mods.c now makes use of this and passes sample_backbuf_rect() the appropriate argument when being used for vertex snapping.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 5dc7959d23b..f3c4c258848 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -134,7 +134,7 @@ int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect)
/* sample rect to increase changes of selecting, so that when clicking
on an edge in the backbuf, we can still select a face */
int dist;
- *index = sample_backbuf_rect(mval, 3, 1, me->totface+1, &dist);
+ *index = sample_backbuf_rect(mval, 3, 1, me->totface+1, &dist,0,NULL);
}
else
/* sample only on the exact position */
@@ -163,7 +163,7 @@ static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index)
persp(PERSP_VIEW);
}
- *index = sample_backbuf_rect(mval, 50, min, max, &dist);
+ *index = sample_backbuf_rect(mval, 50, min, max, &dist,0,NULL);
if (*index == 0)
return 0;