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
parent
855e4bc480
commit
0ed87cb9eb
|
@ -186,7 +186,7 @@ void LWOImporter::InternReadFile( const std::string& pFile,
|
||||||
for(std::list<LWO::Layer>::iterator itLayers=mLayers->begin(); itLayers!=mLayers->end(); itLayers++)
|
for(std::list<LWO::Layer>::iterator itLayers=mLayers->begin(); itLayers!=mLayers->end(); itLayers++)
|
||||||
if (!itLayers->skip)
|
if (!itLayers->skip)
|
||||||
layerCount++;
|
layerCount++;
|
||||||
if (layerCount!=1)
|
if (layerCount!=2)
|
||||||
throw DeadlyImportError("LWO2: The requested layer was not found");
|
throw DeadlyImportError("LWO2: The requested layer was not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue