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.
This commit is contained in:
Martin Poirier
2009-11-03 17:44:12 +00:00
parent 2a61c7fd89
commit 11c36d0ea5

View File

@@ -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);