Merge pull request #51962 from LoipesMas/zoom_fix

Clamp EditorZoomWidget zoom
This commit is contained in:
Max Hilbrunner 2021-08-27 21:31:46 +02:00 committed by GitHub
commit 8e3e9d121d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4195,6 +4195,7 @@ void CanvasItemEditor::_zoom_on_position(real_t p_zoom, Point2 p_position) {
p_zoom = CLAMP(p_zoom, MIN_ZOOM, MAX_ZOOM);
if (p_zoom == zoom) {
zoom_widget->set_zoom(p_zoom);
return;
}