diff options
| author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-12-20 15:17:52 -0200 |
|---|---|---|
| committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-12-20 15:31:45 -0200 |
| commit | 21bad78bd82061f0e71bd52cf1ab783974b6031b (patch) | |
| tree | 8491bc6a2d243afffcf46cf7e8521dbf7f82a83e /editor/plugins/tile_map_editor_plugin.cpp | |
| parent | 3bdd1ff3875450d90f7a695aa5d527a47558d80c (diff) | |
| download | redot-engine-21bad78bd82061f0e71bd52cf1ab783974b6031b.tar.gz | |
Fixes for TileSetEditor and TileMapEditor
[TileSetEditor] Hide Bitmask and Priority for ATLAS_TILE
[TileMapEditor] Hide "Disable autotile" if the selected tile isn't
autotile
Fix #22756, don't update bitmask when tilemode is ATLAS_TILE
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/tile_map_editor_plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index d3a3289a18..c9367edec6 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -516,6 +516,12 @@ void TileMapEditor::_update_palette() { manual_palette->set_current(selected); manual_palette->show(); } + + if (tileset->tile_get_tile_mode(sel_tile) == TileSet::AUTO_TILE) { + manual_button->show(); + } else { + manual_button->hide(); + } } void TileMapEditor::_pick_tile(const Point2 &p_pos) { |
