Added support for point and line primitives.
Added SortByPType and DeterminePType (anon.) steps Optimized ASE, fixed 3DS. Rewrite all loaders to conform to the api changes. Optimized normal computation code in LWOLoader.cpp Added new unit tests Added test file for AC3D (good old wuson again) git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@167 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -750,9 +750,10 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
|
||||
// now generate submeshes
|
||||
for (unsigned int p = 0; p < vSubMaterials.size();++p)
|
||||
{
|
||||
if (aiSplit[p].size() != 0)
|
||||
if (!aiSplit[p].empty())
|
||||
{
|
||||
aiMesh* p_pcOut = new aiMesh();
|
||||
p_pcOut->mPrimitiveTypes = aiPrimitiveType_TRIANGLE;
|
||||
|
||||
// let the sub material index
|
||||
p_pcOut->mMaterialIndex = p;
|
||||
@@ -900,6 +901,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
|
||||
{
|
||||
// otherwise we can simply copy the data to one output mesh
|
||||
aiMesh* p_pcOut = new aiMesh();
|
||||
p_pcOut->mPrimitiveTypes = aiPrimitiveType_TRIANGLE;
|
||||
|
||||
// set an empty sub material index
|
||||
p_pcOut->mMaterialIndex = ASE::Face::DEFAULT_MATINDEX;
|
||||
|
||||
Reference in New Issue
Block a user