ObjLoading: Do not attempt to load textures that already have a loaddef

This commit is contained in:
Jan 2020-02-04 19:52:23 +01:00
parent d01f5c49a8
commit b8de90a675

View File

@ -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);