Fixed the dreaded infinite loop bug. Implemented a few methods for SoZoomTranslate to ensure that it works correctly in all cases.
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5036 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -82,11 +82,8 @@ SoZoomTranslation::SoZoomTranslation()
|
||||
}
|
||||
|
||||
void SoZoomTranslation::GLRender(SoGLRenderAction * action)
|
||||
{
|
||||
SoState *state = action->getState();
|
||||
const SbViewVolume & vv = SoViewVolumeElement::get(state);
|
||||
|
||||
this->doAction((SoAction *)action);
|
||||
{
|
||||
SoZoomTranslation::doAction((SoAction *)action);
|
||||
}
|
||||
|
||||
// Doc in superclass.
|
||||
@@ -135,6 +132,16 @@ void SoZoomTranslation::getMatrix(SoGetMatrixAction * action)
|
||||
|
||||
}
|
||||
|
||||
void SoZoomTranslation::callback(SoCallbackAction * action)
|
||||
{
|
||||
SoZoomTranslation::doAction((SoAction *)action);
|
||||
}
|
||||
|
||||
void SoZoomTranslation::getBoundingBox(SoGetBoundingBoxAction * action)
|
||||
{
|
||||
SoZoomTranslation::doAction((SoAction *)action);
|
||||
}
|
||||
|
||||
void SoZoomTranslation::pick(SoPickAction * action)
|
||||
{
|
||||
SoZoomTranslation::doAction((SoAction *)action);
|
||||
|
||||
Reference in New Issue
Block a user