storing original mesh file name and location

This commit is contained in:
YoheiKakiuchi 2014-04-16 23:35:57 +09:00
parent 7be470e875
commit e308ae141d
1 changed files with 1 additions and 0 deletions

View File

@ -1282,6 +1282,7 @@ protected:
switch (geometry->type) { switch (geometry->type) {
case urdf::Geometry::MESH: { case urdf::Geometry::MESH: {
urdf::Mesh* urdf_mesh = (urdf::Mesh*) geometry.get(); urdf::Mesh* urdf_mesh = (urdf::Mesh*) geometry.get();
cgeometry->setName(urdf_mesh->filename.c_str());
_loadMesh(urdf_mesh->filename, cgeometry, urdf_mesh->scale, org_trans); _loadMesh(urdf_mesh->filename, cgeometry, urdf_mesh->scale, org_trans);
break; break;
} }