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));
}
...
}
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));
}
...
}