Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix 3D animation trembling
  • Loading branch information
vcloarec authored and wonder-sk committed Dec 10, 2020
1 parent 3fa4931 commit e38d13e
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( ( int( mParent3DMapCanvas->cameraController()->yaw() ) % 360 + 360 ) % 360 );
mCompas->setValue( fmod( fmod( mParent3DMapCanvas->cameraController()->yaw(), 360 ) + 360, 360 ) );
}

0 comments on commit e38d13e

Please sign in to comment.