Skip to content

Commit 8f8d8aa

Browse files
gregoire-dlcbentejac
authored andcommitted
[ui] Viewer3D: Fix wrong camera up vector initialization
Default camera up should be accurate and consistent with camera view center. Default camera up vector is not refresh or checked when default camera view center is set.
1 parent 49819dc commit 8f8d8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/ui/qml/Viewer3D/Viewer3D.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ FocusScope {
2222
readonly property alias mainCamera: mainCamera
2323

2424
readonly property vector3d defaultCamPosition: Qt.vector3d(12.0, 10.0, -12.0)
25-
readonly property vector3d defaultCamUpVector: Qt.vector3d(0.0, 1.0, 0.0)
25+
readonly property vector3d defaultCamUpVector: Qt.vector3d(-0.358979, 0.861550, 0.358979) // should be accurate, consistent with camera view center
2626
readonly property vector3d defaultCamViewCenter: Qt.vector3d(0.0, 0.0, 0.0)
2727

2828
readonly property var viewpoint: _reconstruction ? _reconstruction.selectedViewpoint : null

0 commit comments

Comments
 (0)