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:
Diffstat (limited to 'source/blender/src/transform_manipulator.c')
-rw-r--r--source/blender/src/transform_manipulator.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/src/transform_manipulator.c b/source/blender/src/transform_manipulator.c
index b3a127be625..b01533aebc6 100644
--- a/source/blender/src/transform_manipulator.c
+++ b/source/blender/src/transform_manipulator.c
@@ -1384,15 +1384,17 @@ int BIF_do_manipulator(ScrArea *sa)
/* cycling orientation modus */
getmouseco_areawin(mval);
- if(mvalo[0]==mval[0] && mvalo[1]==mval[1]) {
- if(v3d->twmode==V3D_MANIPULATOR_GLOBAL)
- v3d->twmode= V3D_MANIPULATOR_LOCAL;
- else if(v3d->twmode==V3D_MANIPULATOR_LOCAL)
- if(G.obedit || G.obpose) v3d->twmode= V3D_MANIPULATOR_NORMAL;
- else v3d->twmode= V3D_MANIPULATOR_GLOBAL;
- else if(v3d->twmode==V3D_MANIPULATOR_NORMAL)
- v3d->twmode= V3D_MANIPULATOR_GLOBAL;
-
+ if(val==MAN_ROT_V || val==MAN_SCALE_C || val==MAN_TRANS_C) {
+ if(mvalo[0]==mval[0] && mvalo[1]==mval[1]) {
+ if(v3d->twmode==V3D_MANIPULATOR_GLOBAL)
+ v3d->twmode= V3D_MANIPULATOR_LOCAL;
+ else if(v3d->twmode==V3D_MANIPULATOR_LOCAL)
+ if(G.obedit || G.obpose) v3d->twmode= V3D_MANIPULATOR_NORMAL;
+ else v3d->twmode= V3D_MANIPULATOR_GLOBAL;
+ else if(v3d->twmode==V3D_MANIPULATOR_NORMAL)
+ v3d->twmode= V3D_MANIPULATOR_GLOBAL;
+
+ }
}
}