From 49c3828bcf8311236c16a8f7e5a1c634bb5faee3 Mon Sep 17 00:00:00 2001 From: kgv Date: Thu, 25 Feb 2021 14:10:18 +0300 Subject: [PATCH] 0032168: Visualization - Wrong computation of screen axis in V3d_View::SetTwist method Fixed wrong axis check. --- src/V3d/V3d_View.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index 9893f73e0b..bedc6b38d5 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -968,7 +968,7 @@ void V3d_View::SetTwist(const Standard_Real angle) const gp_Dir aReferencePlane (aCamera->Direction().Reversed()); if (!screenAxis (aReferencePlane, gp::DZ(), myXscreenAxis, myYscreenAxis, myZscreenAxis) && !screenAxis (aReferencePlane, gp::DY(), myXscreenAxis, myYscreenAxis, myZscreenAxis) - && !screenAxis (aReferencePlane, gp::DZ(), myXscreenAxis, myYscreenAxis, myZscreenAxis)) + && !screenAxis (aReferencePlane, gp::DX(), myXscreenAxis, myYscreenAxis, myZscreenAxis)) { throw V3d_BadValue ("V3d_ViewSetTwist, alignment of Eye,At,Up,"); }