Fix T52086: Graph editor "normalize" drag errors for integers

This commit is contained in:
Sergey Sharybin 2017-09-28 17:08:43 +05:00
parent 754630cee4
commit 9f916baa70
1 changed files with 1 additions and 1 deletions

View File

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