diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2016-05-27 18:54:46 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2016-05-27 18:54:46 +0200 |
commit | 7c1594ee5a6e17216ffa4e73e33be235e65e0946 (patch) | |
tree | 4d530f277c58a03d972012d84ff0f8f3655a8fdc /tools/editor | |
parent | eb7227a20b27e91c6e2adfb1ded738f2dd7e453b (diff) |
Use scalar to scale TileMap icons
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/plugins/tile_map_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/tile_map_editor_plugin.cpp b/tools/editor/plugins/tile_map_editor_plugin.cpp index a5147851ac..263ff11f38 100644 --- a/tools/editor/plugins/tile_map_editor_plugin.cpp +++ b/tools/editor/plugins/tile_map_editor_plugin.cpp @@ -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(); } } |