Skip textures with the same data position
This commit is contained in:
parent
93830c84e1
commit
6afce74460
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -349,7 +349,12 @@ namespace FirstPlugin
|
|||||||
if (!textureInfo.IsEmpty())
|
if (!textureInfo.IsEmpty())
|
||||||
{
|
{
|
||||||
DrawableTex.Add(textureInfo);
|
DrawableTex.Add(textureInfo);
|
||||||
header.Textures.Add(textureInfo);
|
|
||||||
|
bool HasImage = header.Textures.Any(item => item.DataPos == textureInfo.DataPos);
|
||||||
|
if (!HasImage)
|
||||||
|
{
|
||||||
|
header.Textures.Add(textureInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reader.Seek(pos + 1616, SeekOrigin.Begin);
|
reader.Seek(pos + 1616, SeekOrigin.Begin);
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user