Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
revert use of AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION (fix #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Nov 22, 2013
1 parent eb3e80b commit 8803492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collada_urdf/src/collada_to_urdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ void assimp_file_export(std::string fname, std::string ofname,
fname.erase(0, strlen("file://"));
}
Assimp::Importer importer;
/*
{ // ignore UP_DIRECTION tag in collada
bool existing;
importer.SetPropertyBool(AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION, true, &existing);
if(existing) {
fprintf(stderr, ";; OverWrite : Ignore UP_DIRECTION", existing);
}
}
*/
const aiScene* scene = importer.ReadFile(fname.c_str(),
aiProcess_Triangulate |
aiProcess_GenNormals |
Expand Down

0 comments on commit 8803492

Please sign in to comment.