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