From 59771b00a8ce6b8363547ff0748760da57d7169a Mon Sep 17 00:00:00 2001 From: Recrown Date: Thu, 7 Mar 2019 23:08:37 -0600 Subject: [PATCH] Fixed issue with texture packer caused by not having any 9Ps. --- RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs b/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs index 53c0d93..e4c70a3 100644 --- a/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs +++ b/RecrownedAthenaeum.Tools/TextureAtlasTools/TexturePacker.cs @@ -104,7 +104,7 @@ namespace RecrownedAthenaeum.Tools.TextureAtlas imageHandlerQueue.Clear(); Build(AutoCorrectAtlasSize); } - if (ninePatchDictionary.ContainsKey(imageHandler.Name)) + if (ninePatchDictionary != null && ninePatchDictionary.ContainsKey(imageHandler.Name)) { imageHandler.ninePatchData = ninePatchDictionary[imageHandler.Name]; }