Fixed issue with texture packer caused by not having any 9Ps.

This commit is contained in:
Harrison Deng 2019-03-07 23:08:37 -06:00
parent 38083a1e2f
commit 59771b00a8

View File

@ -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];
}