Skip to content

Commit

Permalink
Oh clang
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Feb 27, 2023
1 parent 16c087f commit 22a46d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/3d/auto_generated/qgscameracontroller.sip.in
Expand Up @@ -165,7 +165,7 @@ Set camera heading to ``angle`` (used for rotating the view)
Move the map by ``tx`` and ``ty``
%End

void walkView( float tx, float ty, float tz );
void walkView( double tx, double ty, double tz );
%Docstring
Walks into the map by ``tx``, ``ty``, and ``tz``

Expand Down
8 changes: 4 additions & 4 deletions src/3d/qgscameracontroller.cpp
Expand Up @@ -817,7 +817,7 @@ void QgsCameraController::onKeyPressedFlyNavigation( Qt3DInput::QKeyEvent *event
mDepressedKeys.insert( event->key() );
}

void QgsCameraController::walkView( float tx, float ty, float tz )
void QgsCameraController::walkView( double tx, double ty, double tz )
{
const QVector3D cameraUp = mCamera->upVector().normalized();
const QVector3D cameraFront = ( QVector3D( mCameraPose.centerPoint().x(), mCameraPose.centerPoint().y(), mCameraPose.centerPoint().z() ) - mCamera->position() ).normalized();
Expand Down Expand Up @@ -850,9 +850,9 @@ void QgsCameraController::applyFlyModeKeyMovements()
const double movementSpeed = mCameraMovementSpeed * ( shiftPressed ? 2 : 1 ) * ( ctrlPressed ? 0.1 : 1 );

bool changed = false;
float x = 0.0;
float y = 0.0;
float z = 0.0;
double x = 0.0;
double y = 0.0;
double z = 0.0;
if ( mDepressedKeys.contains( Qt::Key_Left ) || mDepressedKeys.contains( Qt::Key_A ) )
{
changed = true;
Expand Down
2 changes: 1 addition & 1 deletion src/3d/qgscameracontroller.h
Expand Up @@ -182,7 +182,7 @@ class _3D_EXPORT QgsCameraController : public QObject
* Walks into the map by \a tx, \a ty, and \a tz
* \since QGIS 3.30
*/
void walkView( float tx, float ty, float tz );
void walkView( double tx, double ty, double tz );

/**
* Rotates the camera on itself.
Expand Down

0 comments on commit 22a46d9

Please sign in to comment.