From 95c7c41bd060a55fb2679d53635474dc69703ed7 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 15 Nov 2006 10:02:57 +0000 Subject: 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. --- source/blender/include/editmesh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/include/editmesh.h') diff --git a/source/blender/include/editmesh.h b/source/blender/include/editmesh.h index 2deab0a6f22..e6c24cd7b61 100644 --- a/source/blender/include/editmesh.h +++ b/source/blender/include/editmesh.h @@ -89,8 +89,8 @@ extern void translateflag(short flag, float *vec); extern int convex(float *v1, float *v2, float *v3, float *v4); /* ******************* editmesh_mods.c */ -extern EditEdge *findnearestedge(short *dist); -extern EditVert *findnearestvert(short *dist, short sel); +extern EditEdge *findnearestedge(int *dist); +extern EditVert *findnearestvert(int *dist, short sel); /* ******************* editmesh_tools.c */ -- cgit v1.2.3