Changes default coarse 2d zoom level from 1.5 to sqrt(2).

(cherry picked from commit 3f516622c3)
This commit is contained in:
nobuyuki_nyuu 2019-07-29 15:00:28 -05:00 committed by Rémi Verschelde
parent 4133ee5e85
commit 00883e8fdc
1 changed files with 2 additions and 2 deletions

View File

@ -3705,7 +3705,7 @@ void CanvasItemEditor::_zoom_on_position(float p_zoom, Point2 p_position) {
}
void CanvasItemEditor::_button_zoom_minus() {
_zoom_on_position(zoom / 1.5, viewport_scrollable->get_size() / 2.0);
_zoom_on_position(zoom / Math_SQRT2, viewport_scrollable->get_size() / 2.0);
}
void CanvasItemEditor::_button_zoom_reset() {
@ -3713,7 +3713,7 @@ void CanvasItemEditor::_button_zoom_reset() {
}
void CanvasItemEditor::_button_zoom_plus() {
_zoom_on_position(zoom * 1.5, viewport_scrollable->get_size() / 2.0);
_zoom_on_position(zoom * Math_SQRT2, viewport_scrollable->get_size() / 2.0);
}
void CanvasItemEditor::_button_toggle_snap(bool p_status) {