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:
authorMartin Poirier <theeth@yahoo.com>2009-11-03 20:44:12 +0300
committerMartin Poirier <theeth@yahoo.com>2009-11-03 20:44:12 +0300
commit11c36d0ea5a3facd736fd652b6c6f3eca51fa57e (patch)
treeb5818467c8489b01fdbf861e9d00f071ce5fc4c9 /source/blender/editors/transform/transform_manipulator.c
parent2a61c7fd892f19b423f0f5f1fb12748c4297bfb5 (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.c9
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);