summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-08 23:44:18 +0100
committerGitHub <noreply@github.com>2020-02-08 23:44:18 +0100
commitfd71f3c888321b227fe2f3c9f4f48411b9d78ac5 (patch)
tree44eea98c446de1e2b33295e47625169ef6c663c9
parent3e68d318c42dff7a7da5b1a2c1bca7798bf91a86 (diff)
parent3e95b79b65ac88ad4df59dc4ba5eb05f9c8b68af (diff)
Merge pull request #36020 from Calinou/frame-selection-update-zoom-label
Update the zoom percentage when using Frame Selection in the 2D editor
-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 1d8f3a2bbd..a0e5b1c6ea 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -4967,6 +4967,7 @@ void CanvasItemEditor::_focus_selection(int p_op) {
zoom = scale_x < scale_y ? scale_x : scale_y;
zoom *= 0.90;
viewport->update();
+ _update_zoom_label();
call_deferred("_popup_callback", VIEW_CENTER_TO_SELECTION);
}
}