mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Replace underscores at load/init, fix bone transforms with osgAnimation
This commit is contained in:
parent
541d09cda7
commit
62f1ca3f4d
11 changed files with 185 additions and 81 deletions
|
@ -15,6 +15,13 @@ namespace Misc::StringUtils
|
|||
bool operator()(char x, char y) const { return toLower(x) < toLower(y); }
|
||||
};
|
||||
|
||||
inline std::string underscoresToSpaces(const std::string& oldName)
|
||||
{
|
||||
std::string newName = oldName;
|
||||
std::replace(newName.begin(), newName.end(), '_', ' ');
|
||||
return newName;
|
||||
}
|
||||
|
||||
inline bool ciLess(std::string_view x, std::string_view y)
|
||||
{
|
||||
return std::lexicographical_compare(x.begin(), x.end(), y.begin(), y.end(), CiCharLess());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue