Merge pull request #30938 from nobuyukinyuu/2d-editor-zoom-p1

Changes default canvas_item_editor coarse zoom level from 1.5 to sqrt(2)
This commit is contained in:
Rémi Verschelde 2019-07-30 00:57:43 +02:00 committed by GitHub
commit 9da24f7e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3842,7 +3842,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() {
@ -3850,7 +3850,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) {