Skip to content

Commit 420d2aa

Browse files
committed
fix a view bug when setting front dir also changes up dir
1 parent c0b5310 commit 420d2aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void updateViewAndChangeFrontDir(FrontDir newFrontDir, bool flyTo) {
514514

515515
if (std::fabs(dot(view::getUpVec(), view::getFrontVec())) > 0.1) {
516516
// if the user has foolishly set upDir and frontDir to be along the same axis, fix it
517-
view::upDir = defaultOrthogonalUpDir(view::frontDir);
517+
setUpDir(defaultOrthogonalUpDir(view::frontDir), flyTo);
518518
}
519519

520520
if (viewIsValid()) {

0 commit comments

Comments
 (0)