Fixed the check on the number of layers loaded when requesting a specific layer from an LWO file.

We should have two layers (the requested and the default layer) instead of one.
pull/3/head
Gellule Xg 2011-12-06 22:49:29 -10:00
parent 855e4bc480
commit 0ed87cb9eb
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ void LWOImporter::InternReadFile( const std::string& pFile,
for(std::list<LWO::Layer>::iterator itLayers=mLayers->begin(); itLayers!=mLayers->end(); itLayers++)
if (!itLayers->skip)
layerCount++;
if (layerCount!=1)
if (layerCount!=2)
throw DeadlyImportError("LWO2: The requested layer was not found");
}