Skip to content

Commit

Permalink
Refactor camera change flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Withalion committed Mar 4, 2025
1 parent 001a324 commit 5d3623d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/3d/qgscameracontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ void QgsCameraController::setViewFromTop( float worldX, float worldY, float dist
camPose.setHeadingAngle( yaw );

// we force the updateCameraNearFarPlanes() in Qgs3DMapScene to properly set the planes
// by making sure the cameraPose is never the same, which will emit cameraChanged()
mCameraPose.setDistanceFromCenterPoint( camPose.distanceFromCenterPoint() + 1 );

setCameraPose( camPose );
mCameraPose = camPose;
updateCameraFromPose();
}

QgsVector3D QgsCameraController::lookingAtPoint() const
Expand Down

0 comments on commit 5d3623d

Please sign in to comment.