From c9f07c898c3b7ffbce12c3a8afa2d8afd6c6cad6 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 31 May 2019 11:32:16 +0200 Subject: [PATCH] Refactoring the rotateView to setCameraRotation The new name actualy reflects what it was doing (it sets the rotation, it doesn't apply a new one to it!) CURA-5395 --- resources/qml/Actions.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index 8487ec8ee4..71a655c664 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -120,35 +120,35 @@ Item { id: view3DCameraAction text: catalog.i18nc("@action:inmenu menubar:view", "3D View") - onTriggered: UM.Controller.rotateView("3d", 0) + onTriggered: UM.Controller.setCameraRotation("3d", 0) } Action { id: viewFrontCameraAction text: catalog.i18nc("@action:inmenu menubar:view", "Front View") - onTriggered: UM.Controller.rotateView("home", 0) + onTriggered: UM.Controller.setCameraRotation("home", 0) } Action { id: viewTopCameraAction text: catalog.i18nc("@action:inmenu menubar:view", "Top View") - onTriggered: UM.Controller.rotateView("y", 90) + onTriggered: UM.Controller.setCameraRotation("y", 90) } Action { id: viewLeftSideCameraAction text: catalog.i18nc("@action:inmenu menubar:view", "Left Side View") - onTriggered: UM.Controller.rotateView("x", 90) + onTriggered: UM.Controller.setCameraRotation("x", 90) } Action { id: viewRightSideCameraAction text: catalog.i18nc("@action:inmenu menubar:view", "Right Side View") - onTriggered: UM.Controller.rotateView("x", -90) + onTriggered: UM.Controller.setCameraRotation("x", -90) } Action