Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-04-13 19:37:15 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-04-13 19:37:15 +0300
commitaed97c9efb3c7c035031bf70edd07f2d81e4e3e2 (patch)
tree400fddd8d667094f33e686f5fdef2035075ca60f /source/blender/editors/transform
parentcae23bab6b5fdb0da96244c1ecc8c1586c9961f3 (diff)
Fix bug with autonormalization and transform (after own range commit).
Transforming the center after transforming a handle would continuously flush an extra offset to the handles. Also use normalization range of -1.0 to 1.0 instead of -0.5 to 0.5 (not really important, just for better comparisons)
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform_conversions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index f21685551a8..5750ba40afe 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -4549,12 +4549,12 @@ void flushTransGraphData(TransInfo *t)
if ((td->flag & TD_MOVEHANDLE1) && td2d->h1) {
td2d->h1[0] = td2d->ih1[0] + td->loc[0] - td->iloc[0];
- td2d->h1[1] = td2d->ih1[1] + (td->loc[1] - td->iloc[1]) * inv_unit_scale - tdg->offset;
+ td2d->h1[1] = td2d->ih1[1] + (td->loc[1] - td->iloc[1]) * inv_unit_scale;
}
if ((td->flag & TD_MOVEHANDLE2) && td2d->h2) {
td2d->h2[0] = td2d->ih2[0] + td->loc[0] - td->iloc[0];
- td2d->h2[1] = td2d->ih2[1] + (td->loc[1] - td->iloc[1]) * inv_unit_scale - tdg->offset;
+ td2d->h2[1] = td2d->ih2[1] + (td->loc[1] - td->iloc[1]) * inv_unit_scale;
}
}
}