Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed Dec 10, 2020
1 parent e38d13e commit cf3a2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/3d/qgs3dnavigationwidget.cpp
Expand Up @@ -202,5 +202,5 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget( Qgs3DMapCanvas *parent ) : QWidget
void Qgs3DNavigationWidget::updateFromCamera()
{
// Make sure the angle is between 0 - 359
mCompas->setValue( fmod( fmod( mParent3DMapCanvas->cameraController()->yaw(), 360 ) + 360, 360 ) );
mCompas->setValue( fmod( mParent3DMapCanvas->cameraController()->yaw() + 360, 360 ) );
}

0 comments on commit cf3a2ac

Please sign in to comment.