1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Merge branch 'useless_check' into 'master'

Simplify NodeMapVisitor::apply

See merge request OpenMW/openmw!955
This commit is contained in:
Evil Eye 2021-06-24 17:12:40 +00:00
commit 87c46fb3de

View file

@ -65,10 +65,6 @@ namespace SceneUtil
if (trans.libraryName() == std::string("osgAnimation")) if (trans.libraryName() == std::string("osgAnimation"))
{ {
// Convert underscores to whitespaces as a workaround for Collada (OpenMW's animation system uses whitespace-separated names) // 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(), '_', ' '); std::replace(originalNodeName.begin(), originalNodeName.end(), '_', ' ');
} }