mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
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
This commit is contained in:
parent
8b7c95da35
commit
c9f07c898c
1 changed files with 5 additions and 5 deletions
|
@ -120,35 +120,35 @@ Item
|
||||||
{
|
{
|
||||||
id: view3DCameraAction
|
id: view3DCameraAction
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view", "3D View")
|
text: catalog.i18nc("@action:inmenu menubar:view", "3D View")
|
||||||
onTriggered: UM.Controller.rotateView("3d", 0)
|
onTriggered: UM.Controller.setCameraRotation("3d", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewFrontCameraAction
|
id: viewFrontCameraAction
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view", "Front View")
|
text: catalog.i18nc("@action:inmenu menubar:view", "Front View")
|
||||||
onTriggered: UM.Controller.rotateView("home", 0)
|
onTriggered: UM.Controller.setCameraRotation("home", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewTopCameraAction
|
id: viewTopCameraAction
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view", "Top View")
|
text: catalog.i18nc("@action:inmenu menubar:view", "Top View")
|
||||||
onTriggered: UM.Controller.rotateView("y", 90)
|
onTriggered: UM.Controller.setCameraRotation("y", 90)
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewLeftSideCameraAction
|
id: viewLeftSideCameraAction
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view", "Left Side View")
|
text: catalog.i18nc("@action:inmenu menubar:view", "Left Side View")
|
||||||
onTriggered: UM.Controller.rotateView("x", 90)
|
onTriggered: UM.Controller.setCameraRotation("x", 90)
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: viewRightSideCameraAction
|
id: viewRightSideCameraAction
|
||||||
text: catalog.i18nc("@action:inmenu menubar:view", "Right Side View")
|
text: catalog.i18nc("@action:inmenu menubar:view", "Right Side View")
|
||||||
onTriggered: UM.Controller.rotateView("x", -90)
|
onTriggered: UM.Controller.setCameraRotation("x", -90)
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue