Skip to content
Snippets Groups Projects
Commit 33483cdf authored by jcarpent's avatar jcarpent
Browse files

[Loader] Fix bug with missing C_Str method in aiString

parent 5f2e2ad7
No related branches found
No related tags found
No related merge requests found
...@@ -166,9 +166,11 @@ inline void buildMesh (const fcl::Vec3f & scale, ...@@ -166,9 +166,11 @@ inline void buildMesh (const fcl::Vec3f & scale,
aiFace& face = input_mesh->mFaces[j]; aiFace& face = input_mesh->mFaces[j];
if (face.mNumIndices != 3) { if (face.mNumIndices != 3) {
std::stringstream ss; std::stringstream ss;
#ifdef FCL_USE_ASSIMP_UNIFIED_HEADER_NAMES
ss << "Mesh " << input_mesh->mName.C_Str() << " has a face with " ss << "Mesh " << input_mesh->mName.C_Str() << " has a face with "
<< face.mNumIndices << " vertices. This is not supported\n"; << face.mNumIndices << " vertices. This is not supported\n";
ss << "Node name is: " << node->mName.C_Str() << "\n"; ss << "Node name is: " << node->mName.C_Str() << "\n";
#endif
ss << "Mesh index: " << i << "\n"; ss << "Mesh index: " << i << "\n";
ss << "Face index: " << j << "\n"; ss << "Face index: " << j << "\n";
throw std::invalid_argument (ss.str()); throw std::invalid_argument (ss.str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment