forked from bartvdbraak/blender
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:
parent
9563743f4e
commit
d16da799fb
@ -3699,7 +3699,7 @@ void flushTransGraphData(TransInfo *t)
|
|||||||
|
|
||||||
/* if int-values only, truncate to integers */
|
/* if int-values only, truncate to integers */
|
||||||
if (td->flag & TD_INTVALUES)
|
if (td->flag & TD_INTVALUES)
|
||||||
td2d->loc2d[1]= (float)((int)td2d->loc[1]);
|
td2d->loc2d[1]= floorf(td2d->loc[1] + 0.5f);
|
||||||
else
|
else
|
||||||
td2d->loc2d[1]= td2d->loc[1];
|
td2d->loc2d[1]= td2d->loc[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user