+ fix various things

This commit is contained in:
wmayer
2015-03-31 23:08:12 +02:00
parent 4f5747ebef
commit 8e0110a18e
7 changed files with 30 additions and 15 deletions

View File

@@ -793,7 +793,10 @@ void NavigationStyle::doZoom(SoCamera* camera, SbBool forward, const SbVec2f& po
*/
void NavigationStyle::doZoom(SoCamera* camera, float logfactor, const SbVec2f& pos)
{
if (abs(logfactor)>4.0) return;//something is asking for big zoom factor. This func is made for interactive zooming, where the changes are per mouse move and thus are small.
// something is asking for big zoom factor. This func is made for interactive zooming,
// where the changes are per mouse move and thus are small.
if (abs(logfactor)>4.0)
return;
SbBool zoomAtCur = this->zoomAtCursor;
if (zoomAtCur) {
const SbViewportRegion & vp = viewer->getSoRenderManager()->getViewportRegion();