mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08: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
@ -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…
x
Reference in New Issue
Block a user