Browse Source

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
adario 15 years ago
parent
commit
ef71f3dba7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/LWOLoader.cpp

+ 2 - 1
code/LWOLoader.cpp

@@ -216,7 +216,8 @@ void LWOImporter::InternReadFile( const std::string& pFile,
 			unsigned int i = 0;
 			unsigned int i = 0;
 			for (FaceList::iterator it = layer.mFaces.begin(), end = layer.mFaces.end();it != end;++it,++i)	{
 			for (FaceList::iterator it = layer.mFaces.begin(), end = layer.mFaces.end();it != end;++it,++i)	{
 				// Check whether we support this face's type
 				// 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;
 					continue;
 				}
 				}