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:
authorCampbell Barton <ideasman42@gmail.com>2013-10-01 09:39:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-01 09:39:41 +0400
commit86b28fc2fccfae34a97d96c76be4d25fe8f9ea6b (patch)
treebe3cf62a6d0f048ee5361fbfde82b1783f1f35a2 /source/blender/editors/transform/transform_manipulator.c
parentfe9a64ad6f4a982e2767987372db86ab25ea136f (diff)
addition to r60465, check for individual centers when positioning the manipulator
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index 6fecf0d6642..bcc4bb60bb7 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -429,11 +429,11 @@ int calc_manipulator_stats(const bContext *C)
}
else {
if (bezt->f1) {
- calc_tw_center(scene, bezt->vec[0]);
+ calc_tw_center(scene, bezt->vec[(v3d->around == V3D_LOCAL) ? 1 : 0]);
totsel++;
}
if (bezt->f3) {
- calc_tw_center(scene, bezt->vec[2]);
+ calc_tw_center(scene, bezt->vec[(v3d->around == V3D_LOCAL) ? 1 : 2]);
totsel++;
}
}