summaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2016-05-27 18:54:46 +0200
committerAndreas Haas <liu.gam3@gmail.com>2016-05-27 18:54:46 +0200
commit7c1594ee5a6e17216ffa4e73e33be235e65e0946 (patch)
tree4d530f277c58a03d972012d84ff0f8f3655a8fdc /tools/editor/plugins
parenteb7227a20b27e91c6e2adfb1ded738f2dd7e453b (diff)
Use scalar to scale TileMap icons
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r--tools/editor/plugins/tile_map_editor_plugin.cpp4
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();
}
}