Skip to content

Commit

Permalink
enable zoom in on a void area
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Jan 26, 2022
1 parent c57b3af commit 36c2351
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/3d/qgscameracontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ void QgsCameraController::handleTerrainNavigationWheelZoom()
if ( !mZoomPointCalculated )
{
double depth = Qgs3DUtils::decodeDepth( mDepthBufferImage.pixelColor( mMousePos.x(), mMousePos.y() ) );
if ( depth >= 1 )
return;

mZoomPoint = Qgs3DUtils::screenPointToWorldPos( mMousePos, depth, mViewport.size(), mCameraBeforeZoom.get() );
mZoomPointCalculated = true;
Expand Down

0 comments on commit 36c2351

Please sign in to comment.