Ogitor import .mesh file with case-sensitive ?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
ZhenMan
Gnoblar
Posts: 11
Joined: Mon Jan 06, 2014 4:35 pm

Ogitor import .mesh file with case-sensitive ?

Post by ZhenMan »

:wink:

first, please forgive my english.

Maybe, I found Ogitor is file name case-sensitive, when I read the code. see below:

Code: Select all

void OgitorsRoot::ReloadUserResources()
{   
    ...
    for(unsigned int i = 0;i < pList->size();i++)
    {
        Ogre::String addstr = (*pList)[i];
        addstr.erase(addstr.find(".mesh"), 5);

        if(tmpEntityList.find(addstr) == tmpEntityList.end())
            tmpEntityList.insert(HashMap<Ogre::String, int>::value_type(addstr, 0));
    }   
  ...
}
I changed :wink:

Code: Select all

void OgitorsRoot::ReloadUserResources()
{   
    ...
    for(unsigned int i = 0;i < pList->size();i++)
    {
        Ogre::String addstr = (*pList)[i];
        size_type szFind = addstr.find(".mesh");
     if( szFind == string::npos )
     {
         szFind = addstr.find(".MESH");
     }
        addstr.erase(szFind, 5);

        if(tmpEntityList.find(addstr) == tmpEntityList.end())
            tmpEntityList.insert(HashMap<Ogre::String, int>::value_type(addstr, 0));
    }   


...
}
Post Reply