change transform to round at 0.5 for fcurves.

this gave noticeable issue when transforming int/fcurve's below zero.
This commit is contained in:
Campbell Barton 2011-05-20 18:19:29 +00:00
parent 9563743f4e
commit d16da799fb

@ -3699,7 +3699,7 @@ void flushTransGraphData(TransInfo *t)
/* if int-values only, truncate to integers */
if (td->flag & TD_INTVALUES)
td2d->loc2d[1]= (float)((int)td2d->loc[1]);
td2d->loc2d[1]= floorf(td2d->loc[1] + 0.5f);
else
td2d->loc2d[1]= td2d->loc[1];