Fixed texture deduping

This commit is contained in:
2025-08-22 22:19:21 +02:00
parent ac0e4d8420
commit 0d1e363dbb
4 changed files with 139 additions and 83 deletions

View File

@@ -118,6 +118,16 @@ namespace SplashEdit.RuntimeCode
return texture2D;
}
public PSXTexture2D GetTexture(int index)
{
if (index >= 0 && index < Textures.Count)
{
return Textures[index];
}
return null;
}
/// <summary>
/// Converts the object's mesh into a PlayStation-compatible mesh.
/// </summary>