Merge pull request #34353 from Calinou/increase-2d-editor-zoom-limits

Increase the TileSet and polygon UV editor zoom limits to 16×
This commit is contained in:
Rémi Verschelde 2019-12-14 21:54:44 +01:00 committed by GitHub
commit ce7d3bb1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1444,7 +1444,7 @@ Polygon2DEditor::Polygon2DEditor(EditorNode *p_editor) :
uv_mode_hb->add_child(uv_icon_zoom);
uv_zoom = memnew(HSlider);
uv_zoom->set_min(0.01);
uv_zoom->set_max(4);
uv_zoom->set_max(16);
uv_zoom->set_value(1);
uv_zoom->set_step(0.01);
uv_zoom->set_v_size_flags(SIZE_SHRINK_CENTER);

View File

@ -637,8 +637,8 @@ TileSetEditor::TileSetEditor(EditorNode *p_editor) {
tile_names_visible = false;
// Config scale.
max_scale = 10.0f;
min_scale = 0.1f;
max_scale = 16.0f;
min_scale = 0.01f;
scale_ratio = 1.2f;
}