All flowing tiles now work correctly in AtlasEditor

This commit is contained in:
MattNL
2023-08-10 22:06:27 -04:00
parent 6b778d07a3
commit b0406475d4

View File

@@ -136,6 +136,12 @@ namespace PckStudio
if (_tiles is null || !_tiles.IndexInRange(index) || (_selectedTile = _tiles[index]) is null)
return;
if(String.IsNullOrEmpty(_selectedTile.Tile.DisplayName))
{
// changes the selected tile to the base flowing tile (carries all properties over) - Matt
_selectedTile = _tiles.Find(t => t.Tile.InternalName == _selectedTile.Tile.InternalName);
}
tileNameLabel.Text = $"{_selectedTile.Tile.DisplayName}";
selectTilePictureBox.BlendColor = GetBlendColor();
selectTilePictureBox.UseBlendColor = applyColorMaskToolStripMenuItem.Checked;