revert use of AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION (fix #44)

This commit is contained in:
Dirk Thomas 2013-11-22 10:25:14 -08:00
parent eb3e80b434
commit 8803492cb1
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ void assimp_file_export(std::string fname, std::string ofname,
fname.erase(0, strlen("file://")); fname.erase(0, strlen("file://"));
} }
Assimp::Importer importer; Assimp::Importer importer;
/*
{ // ignore UP_DIRECTION tag in collada { // ignore UP_DIRECTION tag in collada
bool existing; bool existing;
importer.SetPropertyBool(AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION, true, &existing); importer.SetPropertyBool(AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION, true, &existing);
@ -81,6 +82,7 @@ void assimp_file_export(std::string fname, std::string ofname,
fprintf(stderr, ";; OverWrite : Ignore UP_DIRECTION", existing); fprintf(stderr, ";; OverWrite : Ignore UP_DIRECTION", existing);
} }
} }
*/
const aiScene* scene = importer.ReadFile(fname.c_str(), const aiScene* scene = importer.ReadFile(fname.c_str(),
aiProcess_Triangulate | aiProcess_Triangulate |
aiProcess_GenNormals | aiProcess_GenNormals |