Transform widgets; Scale and Rotate versions
To use; press the (temporal) icon in header. Switching widget types is by pressing G, R or S once, if current widget type is different it switches, otherwise it goes to normal Transform(). Widgets need a bit test for picking accuracy, correct drawing etc. The rotate widget has a center button for 'trackball' rotate. That latter can also be used for hotkey-based rotate. In current code, all widgets remain in "Global" space, also in editmode. Also widget updates while using normal transform has to be done. 2 Bugfixes: - rotate in PoseMode had error for 2d 'around' center - transform in postemode could crash, due to typo (& or |)
This commit is contained in:
@@ -318,11 +318,14 @@ void drawaxes(float size)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void drawgourcube(void)
|
||||
|
||||
void drawsolidcube(float size)
|
||||
{
|
||||
float n[3];
|
||||
|
||||
glPushMatrix();
|
||||
glScalef(size, size, size);
|
||||
|
||||
n[0]=0; n[1]=0; n[2]=0;
|
||||
glBegin(GL_QUADS);
|
||||
n[0]= -1.0;
|
||||
@@ -364,8 +367,9 @@ static void drawgourcube(void)
|
||||
glNormal3fv(n);
|
||||
glVertex3fv(cube[7]); glVertex3fv(cube[4]); glVertex3fv(cube[0]); glVertex3fv(cube[3]);
|
||||
glEnd();
|
||||
|
||||
glPopMatrix();
|
||||
}
|
||||
#endif
|
||||
|
||||
static void drawcube(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user