diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:42:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:42:13 +0200 |
commit | 3770bc071c0beb18a67238e98b48f86cced41e92 (patch) | |
tree | fe3f0818eb2e2b9b1bbda7372d624c9c722d706d /pose-widget/pose-widget.cpp | |
parent | 74e33252549d6a83fab1736e6efdf05858dc459e (diff) |
pose-widget: fix back-face check
This should really be using proper algebra.
Diffstat (limited to 'pose-widget/pose-widget.cpp')
-rw-r--r-- | pose-widget/pose-widget.cpp | 2 |
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; |