1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00

Simplify NodeMapVisitor::apply

No need to run a find() before a std::replace
This commit is contained in:
jvoisin 2021-06-23 23:29:14 +02:00
parent df3a47187b
commit 895864099c

View File

@ -65,10 +65,6 @@ namespace SceneUtil
if (trans.libraryName() == std::string("osgAnimation"))
{
// Convert underscores to whitespaces as a workaround for Collada (OpenMW's animation system uses whitespace-separated names)
std::string underscore = "_";
std::size_t foundUnderscore = originalNodeName.find(underscore);
if (foundUnderscore != std::string::npos)
std::replace(originalNodeName.begin(), originalNodeName.end(), '_', ' ');
}