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

This commit is contained in:
2017-09-28 17:08:43 +05:00
parent 3801f76b7b
commit 9ddee885ae

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;