transform snapping to a unit scaled grid was broken.

This commit is contained in:
Campbell Barton
2010-11-23 13:28:13 +00:00
parent 60d13818cf
commit 8f37be3c0b

View File

@@ -306,7 +306,7 @@ static void drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, char **grid_u
/* Store the smallest drawn grid size units name so users know how big each grid cell is */
if(*grid_unit==NULL) {
*grid_unit= bUnit_GetNameDisplay(usys, i);
rv3d->gridview= (scalar * unit->scale_length);
rv3d->gridview= (scalar / unit->scale_length);
}
blend_fac= 1-((GRID_MIN_PX*2)/dx_scalar);