mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Small change to reflect the change of interface of the trackball
This commit is contained in:
parent
15fa3f2b13
commit
546f188d17
@ -289,7 +289,7 @@ void GLArea::drawLight()
|
||||
// Apply the trackball for the light direction
|
||||
glPushMatrix();
|
||||
trackball_light.GetView();
|
||||
trackball_light.Apply(!(isDefaultTrackBall()));
|
||||
trackball_light.Apply();
|
||||
|
||||
static float lightPosF[]={0.0,0.0,1.0,0.0};
|
||||
glLightfv(GL_LIGHT0,GL_POSITION,lightPosF);
|
||||
@ -312,6 +312,7 @@ void GLArea::drawLight()
|
||||
glPopAttrib();
|
||||
}
|
||||
glPopMatrix();
|
||||
if(!isDefaultTrackBall()) trackball_light.DrawPostApply();
|
||||
|
||||
}
|
||||
|
||||
@ -353,7 +354,7 @@ void GLArea::paintEvent(QPaintEvent */*event*/)
|
||||
|
||||
// Finally apply the Trackball for the model
|
||||
trackball.GetView();
|
||||
trackball.Apply(false);
|
||||
trackball.Apply();
|
||||
glPushMatrix();
|
||||
|
||||
//glScale(d);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user