Skip to content

Commit

Permalink
Fixed bug with layer visibility being set wrongly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoneJarmer committed Aug 30, 2021
1 parent 6bec129 commit 2a5aabc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/TiledMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ private TiledLayer[] ParseLayers(XmlNodeList nodeListLayers, XmlNodeList nodeLis
tiledLayer.height = int.Parse(node.Attributes["height"].Value);
tiledLayer.width = int.Parse(node.Attributes["width"].Value);
tiledLayer.type = "tilelayer";
tiledLayer.visible = attrVisible?.Value == "1";
tiledLayer.visible = true;

if (attrVisible != null) {
tiledLayer.visible = attrVisible.Value == "1";
}

if (encoding == "csv")
{
Expand Down

0 comments on commit 2a5aabc

Please sign in to comment.