Fixed shadows warning

This commit is contained in:
Robert Osfield
2016-05-23 16:22:49 +01:00
parent 4b61f4c95d
commit 2056800017

View File

@@ -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