From 1392609c75ff15f5626d557e62c57da109a5f6c2 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Tue, 21 Jan 2020 15:55:59 +0100 Subject: [PATCH] osx 3dmouse change of rotation directions --- src/slic3r/GUI/Mouse3DController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Mouse3DController.cpp b/src/slic3r/GUI/Mouse3DController.cpp index fd58447b5..acadc5b2e 100644 --- a/src/slic3r/GUI/Mouse3DController.cpp +++ b/src/slic3r/GUI/Mouse3DController.cpp @@ -758,9 +758,9 @@ void Mouse3DController::handle_input_axis(const DataPacketAxis& packet) } //rotation deadzone = m_state.get_rotation_deadzone(); - Vec3f rotation(std::abs(packet[3]) > deadzone ? -(float)packet[3] : 0.0, - std::abs(packet[4]) > deadzone ? (float)packet[4] : 0.0, - std::abs(packet[5]) > deadzone ? -(float)packet[5] : 0.0); + Vec3f rotation(std::abs(packet[3]) > deadzone ? (float)packet[3] : 0.0, + std::abs(packet[4]) > deadzone ? (float)packet[4] : 0.0, + std::abs(packet[5]) > deadzone ? (float)packet[5] : 0.0); if (!rotation.isApprox(Vec3f::Zero())) { m_state.append_rotation(rotation);