fix rotation center after view all

This commit is contained in:
Stefan Tröger
2014-09-10 19:14:13 +02:00
committed by wmayer
parent f1d122b78c
commit ec26dd381c

View File

@@ -1903,8 +1903,10 @@ void View3DInventorViewer::viewAll()
if(isAnimationEnabled())
animatedViewAll(10, 20);
// call the default implementation first to make sure everything is visible
SoQTQuarterAdaptor::viewAll();
// make sure everything is visible
if(cam)
cam->viewAll(getSoRenderManager()->getSceneGraph(), this->getSoRenderManager()->getViewportRegion());
for(int i = 0; i < pathlist.getLength(); i++) {
SoPath* path = pathlist[i];