Use material names, set default direction to UP_Y, process extra tag

This commit is contained in:
DenisMikhalev
2015-03-08 22:37:48 +03:00
parent 727888ea10
commit c410512173
3 changed files with 40 additions and 7 deletions

View File

@@ -176,7 +176,7 @@ void ColladaLoader::InternReadFile( const std::string& pFile, aiScene* pScene, I
0, 0, 1, 0,
0, -1, 0, 0,
0, 0, 0, 1);
}
}
// store all meshes
StoreSceneMeshes( pScene);
@@ -1379,7 +1379,7 @@ void ColladaLoader::BuildMaterials( ColladaParser& pParser, aiScene* /*pScene*/)
// create material
aiMaterial* mat = new aiMaterial;
aiString name( matIt->first);
aiString name( material.mName.empty() ? matIt->first : material.mName );
mat->AddProperty(&name,AI_MATKEY_NAME);
// store the material