From 8803492cb13ce36e7861f492c022f3971f0cf85d Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 22 Nov 2013 10:25:14 -0800 Subject: [PATCH] revert use of AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION (fix #44) --- collada_urdf/src/collada_to_urdf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collada_urdf/src/collada_to_urdf.cpp b/collada_urdf/src/collada_to_urdf.cpp index 4e88c7e..02798c9 100644 --- a/collada_urdf/src/collada_to_urdf.cpp +++ b/collada_urdf/src/collada_to_urdf.cpp @@ -74,6 +74,7 @@ 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); @@ -81,6 +82,7 @@ void assimp_file_export(std::string fname, std::string ofname, fprintf(stderr, ";; OverWrite : Ignore UP_DIRECTION", existing); } } + */ const aiScene* scene = importer.ReadFile(fname.c_str(), aiProcess_Triangulate | aiProcess_GenNormals |