Fix T52086: Graph editor "normalize" drag errors for integers
This commit is contained in:
parent
754630cee4
commit
9f916baa70
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue