|
|
@ -266,7 +266,7 @@ bool CColorSlotManager::parseTexName(const char *texName, std::string *texNameWi
|
|
|
|
static std::string nameToParse;
|
|
|
|
static std::string nameToParse;
|
|
|
|
static std::string currentExt;
|
|
|
|
static std::string currentExt;
|
|
|
|
static TIntCoupleVect slotsId;
|
|
|
|
static TIntCoupleVect slotsId;
|
|
|
|
nameToParse = NLMISC::strupr(NLMISC::CFile::getFilenameWithoutExtension(texName));
|
|
|
|
nameToParse = NLMISC::toUpper(NLMISC::CFile::getFilenameWithoutExtension(texName));
|
|
|
|
|
|
|
|
|
|
|
|
TStrPos currPos = nameToParse.length();
|
|
|
|
TStrPos currPos = nameToParse.length();
|
|
|
|
|
|
|
|
|
|
|
@ -377,9 +377,8 @@ bool CColorSlotManager::changeTexName(std::string &texName, TIntCouple *slotIDs,
|
|
|
|
static TIntCoupleVect srcSlotIDs;
|
|
|
|
static TIntCoupleVect srcSlotIDs;
|
|
|
|
|
|
|
|
|
|
|
|
everythingOk = true;
|
|
|
|
everythingOk = true;
|
|
|
|
texNameNoExt = NLMISC::CFile::getFilenameWithoutExtension(texName);
|
|
|
|
texNameNoExt = NLMISC::toUpper(NLMISC::CFile::getFilenameWithoutExtension(texName));
|
|
|
|
texExt = NLMISC::CFile::getExtension(texName);
|
|
|
|
texExt = NLMISC::CFile::getExtension(texName);
|
|
|
|
NLMISC::strupr(texNameNoExt);
|
|
|
|
|
|
|
|
TTex2Slots::const_iterator texIt = _TexMap.find(texNameNoExt);
|
|
|
|
TTex2Slots::const_iterator texIt = _TexMap.find(texNameNoExt);
|
|
|
|
if (texIt != _TexMap.end())
|
|
|
|
if (texIt != _TexMap.end())
|
|
|
|
{
|
|
|
|
{
|
|
|
|