Drop the file extension from the node name generation.

pull/3/head
Gellule Xg 2011-12-06 20:38:53 -10:00
parent 90427fdcba
commit 0a317b944e
1 changed files with 3 additions and 2 deletions

View File

@ -295,8 +295,9 @@ void LWSImporter::SetupNodeName(aiNode* nd, LWS::NodeDesc& src)
if (s == std::string::npos) if (s == std::string::npos)
s = 0; s = 0;
else ++s; else ++s;
std::string::size_type t = src.path.substr(s).find_last_of(".");
nd->mName.length = ::sprintf(nd->mName.data,"%s_(%08X)",src.path.substr(s).c_str(),combined);
nd->mName.length = ::sprintf(nd->mName.data,"%s_(%08X)",src.path.substr(s).substr(0,t).c_str(),combined);
return; return;
} }
} }