Преглед на файлове

Update the zoom percentage when using Frame Selection in the 2D editor

This closes #36019.

(cherry picked from commit 3e95b79b65ac88ad4df59dc4ba5eb05f9c8b68af)
Hugo Locurcio преди 5 години
родител
ревизия
93b99f2c89
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 0
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);
 		}
 	}