Skip to content

Commit

Permalink
backport #40538
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Dec 14, 2020
1 parent 6cb84a3 commit ef9c210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/3d/qgs3dnavigationwidget.cpp
Expand Up @@ -198,5 +198,5 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget( Qgs3DMapCanvas *parent ) : QWidget
void Qgs3DNavigationWidget::updateFromCamera()
{
// Make sure the angle is between 0 - 359
mCompas->setValue( ( int( mParent3DMapCanvas->cameraController()->yaw() ) % 360 + 360 ) % 360 );
whileBlocking( mCompas )->setValue( fmod( mParent3DMapCanvas->cameraController()->yaw() + 360, 360 ) );
}

0 comments on commit ef9c210

Please sign in to comment.