mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 18:39:59 +00:00
Use a case-insensitive compare for the part filter
This commit is contained in:
parent
b505d4ace0
commit
c9b1f72d81
@ -944,7 +944,8 @@ EntityList NIFLoader::createEntities(Ogre::Entity *parent, const std::string &bo
|
|||||||
if(ent->hasSkeleton())
|
if(ent->hasSkeleton())
|
||||||
{
|
{
|
||||||
if(meshes[i].second.length() < filter.length() ||
|
if(meshes[i].second.length() < filter.length() ||
|
||||||
meshes[i].second.compare(0, filter.length(), filter) != 0)
|
!boost::algorithm::lexicographical_compare(meshes[i].second.substr(0, filter.length()),
|
||||||
|
filter, boost::algorithm::is_iequal()))
|
||||||
{
|
{
|
||||||
sceneMgr->destroyEntity(ent);
|
sceneMgr->destroyEntity(ent);
|
||||||
meshes.erase(meshes.begin()+i);
|
meshes.erase(meshes.begin()+i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user