Cosmetic change (after bugreport), scaling in axis (press X,Y,Z) now prints

in header "local" too, this to indicate it only does local scales.

In editmesh: added NULL pointer in return of function to prevent crash
on error "give quad verts"
This commit is contained in:
Ton Roosendaal 2004-11-10 16:23:05 +00:00
parent f7cc0cf342
commit 4b6f66fa54
2 changed files with 5 additions and 1 deletions

@ -1946,6 +1946,8 @@ if(efa1->v1== *v2) {
*/ */
} }
else { else {
*v3= *v4= NULL;
printf("error in givequadverts()\n"); printf("error in givequadverts()\n");
return; return;
} }

@ -5952,6 +5952,8 @@ void transform(int mode)
sprintf(str, "Sizex: %.3f Sizey: %.3f Sizez: >%.3f<", sizelo[0], sizelo[1], sizelo[2]); sprintf(str, "Sizex: %.3f Sizey: %.3f Sizez: >%.3f<", sizelo[0], sizelo[1], sizelo[2]);
} }
} }
else if (axismode)
sprintf(str, "Local Sizex: %.3f Sizey: %.3f Sizez: %.3f", sizelo[0], sizelo[1], sizelo[2]);
else else
sprintf(str, "Sizex: %.3f Sizey: %.3f Sizez: %.3f", sizelo[0], sizelo[1], sizelo[2]); sprintf(str, "Sizex: %.3f Sizey: %.3f Sizez: %.3f", sizelo[0], sizelo[1], sizelo[2]);
} }