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.
This commit is contained in:
2006-11-15 10:02:57 +00:00
parent 3d7e802c6c
commit 95c7c41bd0
7 changed files with 36 additions and 37 deletions

View File

@@ -1260,7 +1260,7 @@ static Object *group_objects_menu(Group *group)
str= MEM_callocN(40+32*len, "menu");
strcpy(str, "Select a Group Object %t");
strcpy(str, "Make Proxy for: %t");
a= strlen(str);
for(nr=1, go= group->gobject.first; go; go= go->next, nr++) {
a+= sprintf(str+a, "|%s %%x%d", go->ob->id.name+2, nr);