From ef71f3dba7f5db4df1f47509196a1f30f6d5f1b3 Mon Sep 17 00:00:00 2001 From: adario Date: Fri, 19 Mar 2010 23:35:29 +0000 Subject: [PATCH] Fixed a polygon type issue in the LWOLoader. LightWave polygons of type 'BONE' and 'SUBD' (animation bones and subdivision surfaces) were not being processed at all, sometimes resulting in empty meshes. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@623 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/LWOLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/LWOLoader.cpp b/code/LWOLoader.cpp index 4d690283a..cb9032ccd 100644 --- a/code/LWOLoader.cpp +++ b/code/LWOLoader.cpp @@ -216,7 +216,8 @@ void LWOImporter::InternReadFile( const std::string& pFile, unsigned int i = 0; for (FaceList::iterator it = layer.mFaces.begin(), end = layer.mFaces.end();it != end;++it,++i) { // Check whether we support this face's type - if ((*it).type != AI_LWO_FACE && (*it).type != AI_LWO_PTCH) { + if ((*it).type != AI_LWO_FACE && (*it).type != AI_LWO_PTCH && + (*it).type != AI_LWO_BONE && (*it).type != AI_LWO_SUBD) { continue; }