diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-03 20:44:12 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-03 20:44:12 +0300 |
commit | 11c36d0ea5a3facd736fd652b6c6f3eca51fa57e (patch) | |
tree | b5818467c8489b01fdbf861e9d00f071ce5fc4c9 /source/blender/editors/transform/transform_manipulator.c | |
parent | 2a61c7fd892f19b423f0f5f1fb12748c4297bfb5 (diff) |
Patch [#19799] Add trackball loop to rotate manipulator
by Adrian Winchell (slightly modified)
This adds a center circle (like translation and resize) to the rotation manipulator that triggers trackball rotation.
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index 357e164961d..a1d62f93568 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -986,6 +986,15 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving, drawcircball(GL_LINE_LOOP, unitmat[3], size, unitmat); } } + + /* Screen aligned trackball rot circle */ + if(drawflags & MAN_ROT_T) { + if(G.f & G_PICKSEL) glLoadName(MAN_ROT_T); + + UI_ThemeColor(TH_TRANSFORM); + drawcircball(GL_LINE_LOOP, unitmat[3], 0.2f*size, unitmat); + } + /* Screen aligned view rot circle */ if(drawflags & MAN_ROT_V) { if(G.f & G_PICKSEL) glLoadName(MAN_ROT_V); |