summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:42:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:42:13 +0200
commit3770bc071c0beb18a67238e98b48f86cced41e92 (patch)
treefe3f0818eb2e2b9b1bbda7372d624c9c722d706d
parent74e33252549d6a83fab1736e6efdf05858dc459e (diff)
pose-widget: fix back-face check
This should really be using proper algebra.
-rw-r--r--pose-widget/pose-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index 53ce5811..54686114 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -34,7 +34,7 @@ void pose_widget::paintEvent(QPaintEvent*)
auto [ yaw, pitch, roll ] = R;
auto [ x, y, z ] = T;
- const QImage& img = std::fabs(pitch) > 90 || std::fabs(yaw) > 90
+ const QImage& img = std::fabs(pitch) > 90 ^ std::fabs(yaw) > 90
? back
: front;