diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-28 15:08:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-28 15:08:43 +0300 |
commit | 9ddee885aea4d026bb0409a51a137706c95d318b (patch) | |
tree | 1363ccc45d53cacbe59121cbed7e49e844cd9ac7 /source/blender | |
parent | 3801f76b7baf48c608741aba84f6c51e418614dc (diff) |
Fix T52086: Graph editor "normalize" drag errors for integers
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index a4df4b02120..9d63afeb85c 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -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; |