diff --git a/src/Mod/Mesh/App/Core/MeshIO.cpp b/src/Mod/Mesh/App/Core/MeshIO.cpp index 1c49e1205c..5184bff722 100644 --- a/src/Mod/Mesh/App/Core/MeshIO.cpp +++ b/src/Mod/Mesh/App/Core/MeshIO.cpp @@ -341,11 +341,6 @@ bool MeshInput::LoadOBJ (std::istream &rstrIn) unsigned long countMaterialFacets = 0; while (std::getline(rstrIn, line)) { - // when a group name comes don't make it lower case - if (!line.empty() && line[0] != 'g') { - for (std::string::iterator it = line.begin(); it != line.end(); ++it) - *it = tolower(*it); - } if (boost::regex_match(line.c_str(), what, rx_p)) { fX = (float)std::atof(what[1].first); fY = (float)std::atof(what[4].first); @@ -1285,8 +1280,7 @@ bool MeshInput::LoadMeshNode (std::istream &rstrIn) return false; while (std::getline(rstrIn, line)) { - for (std::string::iterator it = line.begin(); it != line.end(); ++it) - *it = tolower(*it); + boost::algorithm::to_lower(line); if (boost::regex_match(line.c_str(), what, rx_p)) { fX = (float)std::atof(what[1].first); fY = (float)std::atof(what[4].first);