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:
parent
37f664b1a5
commit
980e962bb8
2 changed files with 3 additions and 3 deletions
|
@ -1444,7 +1444,7 @@ Polygon2DEditor::Polygon2DEditor(EditorNode *p_editor) :
|
||||||
uv_mode_hb->add_child(uv_icon_zoom);
|
uv_mode_hb->add_child(uv_icon_zoom);
|
||||||
uv_zoom = memnew(HSlider);
|
uv_zoom = memnew(HSlider);
|
||||||
uv_zoom->set_min(0.01);
|
uv_zoom->set_min(0.01);
|
||||||
uv_zoom->set_max(4);
|
uv_zoom->set_max(16);
|
||||||
uv_zoom->set_value(1);
|
uv_zoom->set_value(1);
|
||||||
uv_zoom->set_step(0.01);
|
uv_zoom->set_step(0.01);
|
||||||
uv_zoom->set_v_size_flags(SIZE_SHRINK_CENTER);
|
uv_zoom->set_v_size_flags(SIZE_SHRINK_CENTER);
|
||||||
|
|
|
@ -637,8 +637,8 @@ TileSetEditor::TileSetEditor(EditorNode *p_editor) {
|
||||||
tile_names_visible = false;
|
tile_names_visible = false;
|
||||||
|
|
||||||
// Config scale.
|
// Config scale.
|
||||||
max_scale = 10.0f;
|
max_scale = 16.0f;
|
||||||
min_scale = 0.1f;
|
min_scale = 0.01f;
|
||||||
scale_ratio = 1.2f;
|
scale_ratio = 1.2f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue