Skip texture maps if not present in pak

This commit is contained in:
KillzXGaming 2022-10-28 20:10:42 -04:00
parent b6789443ce
commit 0a9520d1f2

View file

@ -139,7 +139,7 @@ namespace DKCTF
foreach (var texMap in mat.Textures)
{
string guid = texMap.Value.FileID.ToString();
if (texFolder.Nodes.ContainsKey(guid))
if (texFolder.Nodes.ContainsKey(guid) || !Textures.ContainsKey(guid))
continue;
if (Textures[guid].FileFormat == null)