Add undo-redo to the TileSet editor, and other improvements

This commit is contained in:
Michael Alexsander Silva Dias 2018-12-19 14:20:49 -02:00
parent 8b7028e7b1
commit 4a91f94c13
7 changed files with 602 additions and 205 deletions

View file

@ -517,7 +517,7 @@ void TileMapEditor::_update_palette() {
manual_palette->show();
}
if (tileset->tile_get_tile_mode(sel_tile) == TileSet::AUTO_TILE) {
if (sel_tile != TileMap::INVALID_CELL && tileset->tile_get_tile_mode(sel_tile) == TileSet::AUTO_TILE) {
manual_button->show();
} else {
manual_button->hide();