summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorLoipesMas <46327403+LoipesMas@users.noreply.github.com>2021-08-25 18:53:40 +0200
committerLoipesMas <46327403+LoipesMas@users.noreply.github.com>2021-08-25 18:53:40 +0200
commitf3883ea59e7b65a036bda44395f268b47f463a21 (patch)
tree7552b85256a99543c7d99aa508cb4850130dac07 /editor/plugins
parentd5a30431b9a5960887055315dd9720869017d330 (diff)
Fix zoom label not being updated
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp1
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 76c056ed33..c273727dd3 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -4190,6 +4190,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;
}