mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 7 additions and 1 deletions
|
@ -360,7 +360,13 @@ UM.PreferencesPage
|
||||||
id: invertZoomCheckbox
|
id: invertZoomCheckbox
|
||||||
text: catalog.i18nc("@action:button", "Invert the direction of camera zoom.");
|
text: catalog.i18nc("@action:button", "Invert the direction of camera zoom.");
|
||||||
checked: boolCheck(UM.Preferences.getValue("view/invert_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…
Add table
Add a link
Reference in a new issue