diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-08-27 21:31:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 21:31:46 +0200 |
commit | 8e3e9d121d15fe00e76d2cde9353259c9fe9738a (patch) | |
tree | 4a25548f1abd5b05f3589a96b5244be114831c05 | |
parent | 4e67e9bca63b6539820a4e09d58ffc192146da19 (diff) | |
parent | f3883ea59e7b65a036bda44395f268b47f463a21 (diff) |
Merge pull request #51962 from LoipesMas/zoom_fix
Clamp EditorZoomWidget zoom
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index ec3f899e78..d96cc1cd18 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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; } |