mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 06:08:58 +08:00
Reset the camera origin when uninverting zoom direction
If zoom-to-cursor has been activated the camera origin will end up behind the camera. This resets it. Fixes #6490.
This commit is contained in:
parent
6ed2b79166
commit
f8449796c9
@ -360,7 +360,13 @@ UM.PreferencesPage
|
||||
id: invertZoomCheckbox
|
||||
text: catalog.i18nc("@action:button", "Invert the direction of camera zoom.");
|
||||
checked: boolCheck(UM.Preferences.getValue("view/invert_zoom"))
|
||||
onClicked: UM.Preferences.setValue("view/invert_zoom", checked)
|
||||
onClicked: {
|
||||
if(!checked && zoomToMouseCheckbox.checked) //Fix for Github issue Ultimaker/Cura#6490: Make sure the camera origin is in front when unchecking.
|
||||
{
|
||||
UM.Controller.setCameraOrigin("home");
|
||||
}
|
||||
UM.Preferences.setValue("view/invert_zoom", checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user