From ac4bb63cadbe79c707fc61e541fd6d0a0ef1c0f9 Mon Sep 17 00:00:00 2001 From: Max Weidauer Date: Tue, 25 Jun 2024 02:04:23 +0200 Subject: [PATCH] fixed Z direction in 3d view --- source/ui/PannerComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ui/PannerComponent.cpp b/source/ui/PannerComponent.cpp index 5898252..2d6118b 100644 --- a/source/ui/PannerComponent.cpp +++ b/source/ui/PannerComponent.cpp @@ -102,6 +102,6 @@ void PannerComponent::timerCallback() { pannerVisualisation.setVisualPosition(x, y, z, view); } else { // Coordinates are swapped to rotate the coordinate system by 90 degrees counter-clockwise - openGLVisualisation.setVisualPosition(-y, x, z); + openGLVisualisation.setVisualPosition(-y, x, -z); } }