Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgscamerapose: Fix pitch initial value to avoid rotation computation …
…error This is a follow up from commit b173af9. This prevents a bug in QgsCameraPose::updateCamera when updating camera rotation. Indeed, with a mPitchAngle < 0.2, QQuaternion::fromEulerAngles( mPitchAngle, mHeadingAngle, 0 ) will return bad rotation angle. This is fixed is Qt6, but it has not been backported to Qt5. See: https://bugreports.qt.io/browse/QTBUG-72103 This change is mostly useful when the `setViewFromTop` method is called because it uses the default QgsCameraPose constructor and therefore, the initial pitch angle is used. The different associated tests need to be updated to take into account this change.
- Loading branch information
1 parent
2e76c14
commit bdf524b
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+129 KB
...ges/composer_3d/expected_composer3d_basic_qt5/expected_composer3d_basic_qt5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes