We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b991c commit a7f4fe1Copy full SHA for a7f4fe1
Tools/SPRTYL2PNG/MainWindow.xaml.cs
@@ -56,8 +56,12 @@ private void UpdatePreviewPanel()
56
previewPanel.Children.Add(spriteImage[i]);
57
}
58
59
- var tg = (TileSet)loadedGraphics;
60
- if (tg.TileSetGroupInformation != null)
+ TileSet tg = null;
+
61
+ if(loadedGraphics is TileSet)
62
+ tg = (TileSet)loadedGraphics;
63
64
+ if (tg != null && tg.TileSetGroupInformation != null)
65
{
66
tileColumnDef.Width = new GridLength(250);
67
var spriteTileImage = new Image[tg.TileSetGroupInformation.Length];
0 commit comments