Increase the TileSet and polygon UV editor zoom limits to 16×

This also changes the TileSet editor's minimum zoom to match
other 2D editors.

This closes #34346.
This commit is contained in:
Hugo Locurcio 2019-12-14 20:48:47 +01:00
parent 37f664b1a5
commit 980e962bb8
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
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;
}