mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Use scalar to scale TileMap icons
This commit is contained in:
parent
eb7227a20b
commit
7c1594ee5a
3 changed files with 16 additions and 23 deletions
|
|
@ -1212,8 +1212,8 @@ void TileMapEditor::_icon_size_changed(float p_value) {
|
|||
if (node) {
|
||||
Size2 size = node->get_cell_size() * p_value;
|
||||
palette->set_min_icon_size(size + Size2(4, 0)); //4px gap between tiles
|
||||
palette->set_icon_stretch_to_max_size(true);
|
||||
palette->set_max_icon_size(size);
|
||||
//palette->set_max_icon_size(size);
|
||||
palette->set_icon_scale(p_value);
|
||||
_update_palette();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue