From b0406475d481b3bdfaef98d9ce0c423be7085a5f Mon Sep 17 00:00:00 2001 From: MattNL Date: Thu, 10 Aug 2023 22:06:27 -0400 Subject: [PATCH] All flowing tiles now work correctly in AtlasEditor --- PCK-Studio/Forms/Editor/TextureAtlasEditor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs b/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs index 53cf5389..ce29ee55 100644 --- a/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs +++ b/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs @@ -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;