|
|
|
@ -9,11 +9,15 @@ namespace MWRender{
|
|
|
|
|
|
|
|
|
|
std::string Animation::getUniqueID(std::string mesh){
|
|
|
|
|
int counter;
|
|
|
|
|
if(mUniqueIDs.find(mesh) == mUniqueIDs.end()){
|
|
|
|
|
counter = mUniqueIDs[mesh] = 0;
|
|
|
|
|
std::string copy = mesh;
|
|
|
|
|
std::transform(copy.begin(), copy.end(), copy.begin(), ::tolower);
|
|
|
|
|
if(mUniqueIDs.find(copy) == mUniqueIDs.end()){
|
|
|
|
|
counter = mUniqueIDs[copy] = 0;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
mUniqueIDs[copy] = mUniqueIDs[copy] + 1;
|
|
|
|
|
counter = mUniqueIDs[copy];
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
counter = mUniqueIDs[mesh]++;
|
|
|
|
|
|
|
|
|
|
std::stringstream out;
|
|
|
|
|
if(counter > 99 && counter < 1000)
|
|
|
|
|