diff options
Diffstat (limited to 'source/blender/src/transform_manipulator.c')
-rw-r--r-- | source/blender/src/transform_manipulator.c | 20 |
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; + + } } } |