From 8c6ced87a192a21c0f7f3d99e8906d7f87861d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0toura=C4=8D?= <525032@mail.muni.cz> Date: Sat, 18 May 2024 10:48:19 +0200 Subject: [PATCH] fix export of alpha, beta to rofitool --- src/edit/src/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit/src/editor.cpp b/src/edit/src/editor.cpp index c1f47e4..3eb5925 100644 --- a/src/edit/src/editor.cpp +++ b/src/edit/src/editor.cpp @@ -2777,7 +2777,7 @@ void Editor::rotateConnector(connector_ptr connector, float angle) rot_con->setCurrentRotation(current_rotation + angle); auto connector_node = rot_con->getNode(); - auto rotation_mat = glm::toMat4(glm::angleAxis(glm::radians(angle), glm::vec3(1.0f, 0.0f, 0.0f))); + auto rotation_mat = glm::toMat4(glm::angleAxis(glm::radians(-angle), glm::vec3(1.0f, 0.0f, 0.0f))); connector_node->translatePosVec(rotation_mat); connector_node->rotateRotationQuat(glm::toQuat(rotation_mat)); } -- GitLab