Revert "Only emit cameraChanged() on frame start"

This reverts commit 0f3129b7a4d420471dd4eaaecbee26165f49a3cf.
This commit is contained in:
Nyall Dawson 2025-02-21 11:04:35 +10:00 committed by Stefanos Natsis
parent b7c35003b6
commit bb4962ee30
2 changed files with 1 additions and 10 deletions

View File

@ -161,12 +161,6 @@ void QgsCameraController::zoomCameraAroundPivot( const QVector3D &oldCameraPosit
void QgsCameraController::frameTriggered( float dt )
{
Q_UNUSED( dt )
if ( mCameraChanged )
{
emit cameraChanged();
mCameraChanged = false;
}
}
void QgsCameraController::resetView( float distance )
@ -288,7 +282,7 @@ void QgsCameraController::updateCameraFromPose()
if ( mCamera )
mCameraPose.updateCamera( mCamera );
mCameraChanged = true;
emit cameraChanged();
}
void QgsCameraController::moveCameraPositionBy( const QVector3D &posDiff )

View File

@ -385,9 +385,6 @@ class _3D_EXPORT QgsCameraController : public QObject
// 3D world's origin in map coordinates
QgsVector3D mOrigin;
//! Did camera change since last frame? Need to know if we should emit cameraChanged().
bool mCameraChanged = false;
// To test the cameracontroller
friend class TestQgs3DRendering;
friend class TestQgs3DCameraController;