diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-15 13:02:57 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-15 13:02:57 +0300 |
commit | 95c7c41bd060a55fb2679d53635474dc69703ed7 (patch) | |
tree | 628320b2a9914bb96a64f6a757c1967db5d6fd3d /source/blender/src/editface.c | |
parent | 3d7e802c6c3a0efe686a4ee6213a47f1b0ad3aab (diff) |
Bugfix #5224
Prob: selection sometimes gave wrong edges/faces
Selection code for editmesh was still using a short for calculating the
distance of a projected vertex/edge/face from the mouse position. In
zoomed in cases that'll give overflows and unpredictable results.
It was fixed only half before... now all shorts are removed for distance
calculus.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r-- | source/blender/src/editface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c index 71ed5a4516b..49194f3fb67 100644 --- a/source/blender/src/editface.c +++ b/source/blender/src/editface.c @@ -135,7 +135,7 @@ int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect) if (rect) { /* sample rect to increase changes of selecting, so that when clicking on an edge in the backbuf, we can still select a face */ - short dist; + int dist; *index = sample_backbuf_rect(mval, 3, 1, me->totface+1, &dist); } else @@ -153,7 +153,7 @@ int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect) /* returns 0 if not found, otherwise 1 */ static int facesel_edge_pick(Mesh *me, short *mval, unsigned int *index) { - short dist; + int dist; unsigned int min = me->totface + 1; unsigned int max = me->totface + me->totedge + 1; |