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:
mrlukeparry
2011-10-18 21:55:29 +00:00
parent 6af7745439
commit 601bd29b2d
4 changed files with 16 additions and 7 deletions

View File

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