From 2056800017390fcf8c11af54079e7da58f38048b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 May 2016 16:22:49 +0100 Subject: [PATCH] Fixed shadows warning --- src/osgGA/OrbitManipulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgGA/OrbitManipulator.cpp b/src/osgGA/OrbitManipulator.cpp index 4ac666e83..3afb44ac7 100644 --- a/src/osgGA/OrbitManipulator.cpp +++ b/src/osgGA/OrbitManipulator.cpp @@ -450,9 +450,9 @@ void OrbitManipulator::zoomModel( const float dy, bool pushForwardIfNeeded ) if( pushForwardIfNeeded ) { // push the camera forward - float scale = -_distance; + float yscale = -_distance; Matrixd rotation_matrix( _rotation ); - Vec3d dv = (Vec3d( 0.0f, 0.0f, -1.0f ) * rotation_matrix) * (dy * scale); + Vec3d dv = (Vec3d( 0.0f, 0.0f, -1.0f ) * rotation_matrix) * (dy * yscale); _center += dv; } else