1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Update the minimum value of the zoom level spinbox on project change

This commit is contained in:
Manolis Papadeas 2021-09-04 16:59:23 +03:00
parent 47b20ff5c3
commit 37916b63ca

View file

@ -235,6 +235,8 @@ func change_project() -> void:
Global.preview_zoom_slider.min_value = -camera.zoom_max.x
Global.preview_zoom_slider.connect("value_changed", Global.canvas_preview_container, "_on_PreviewZoomSlider_value_changed")
if camera == Global.camera:
Global.zoom_level_spinbox.min_value = 100.0/camera.zoom_max.x
camera.zoom = cameras_zoom[i]
camera.offset = cameras_offset[i]
camera.zoom_changed()