From 0ed87cb9ebbf0acfe37100a90f39168daf0cfb24 Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Tue, 6 Dec 2011 22:49:29 -1000 Subject: [PATCH] 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. --- code/LWOLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LWOLoader.cpp b/code/LWOLoader.cpp index f0b0ef946..7ea1caf99 100644 --- a/code/LWOLoader.cpp +++ b/code/LWOLoader.cpp @@ -186,7 +186,7 @@ void LWOImporter::InternReadFile( const std::string& pFile, for(std::list::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"); }