mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
ObjLoading: Do not attempt to load textures that already have a loaddef
This commit is contained in:
parent
d01f5c49a8
commit
b8de90a675
@ -106,11 +106,10 @@ void ObjLoaderT6::LoadImageData(ISearchPath* searchPath, Zone* zone)
|
|||||||
{
|
{
|
||||||
auto* image = imageEntry->m_asset;
|
auto* image = imageEntry->m_asset;
|
||||||
|
|
||||||
// TODO: Enable this when loadDef is no longer loaded into the temp block and never updated.
|
if(image->texture.loadDef && image->texture.loadDef->resourceSize > 0)
|
||||||
// if(image->texture.loadDef && image->texture.loadDef->resourceSize > 0)
|
{
|
||||||
// {
|
continue;
|
||||||
// continue;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
std::string imageFileName = "images/" + std::string(image->name) + ".iwi";
|
std::string imageFileName = "images/" + std::string(image->name) + ".iwi";
|
||||||
auto* filePathImage = searchPath->Open(imageFileName);
|
auto* filePathImage = searchPath->Open(imageFileName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user