Fixed shadows warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user