From ec26dd381c95074e343d2f2bf3f1ba87dafb48a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Wed, 10 Sep 2014 19:14:13 +0200 Subject: [PATCH] fix rotation center after view all --- src/Gui/View3DInventorViewer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index a9f4d31a95..4fcc50317d 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -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];