|
|
@ -9,11 +9,15 @@ namespace MWRender{
|
|
|
|
|
|
|
|
|
|
|
|
std::string Animation::getUniqueID(std::string mesh){
|
|
|
|
std::string Animation::getUniqueID(std::string mesh){
|
|
|
|
int counter;
|
|
|
|
int counter;
|
|
|
|
if(mUniqueIDs.find(mesh) == mUniqueIDs.end()){
|
|
|
|
std::string copy = mesh;
|
|
|
|
counter = mUniqueIDs[mesh] = 0;
|
|
|
|
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;
|
|
|
|
std::stringstream out;
|
|
|
|
if(counter > 99 && counter < 1000)
|
|
|
|
if(counter > 99 && counter < 1000)
|
|
|
@ -463,7 +467,7 @@ namespace MWRender{
|
|
|
|
|
|
|
|
|
|
|
|
base->getAllAnimationStates()->_notifyDirty();
|
|
|
|
base->getAllAnimationStates()->_notifyDirty();
|
|
|
|
//base->_updateAnimation();
|
|
|
|
//base->_updateAnimation();
|
|
|
|
base->_notifyMoved();
|
|
|
|
base->_notifyMoved();
|
|
|
|
|
|
|
|
|
|
|
|
for(unsigned int i = 0; i < entityparts.size(); i++){
|
|
|
|
for(unsigned int i = 0; i < entityparts.size(); i++){
|
|
|
|
Ogre::SkeletonInstance* skel = entityparts[i]->getSkeleton();
|
|
|
|
Ogre::SkeletonInstance* skel = entityparts[i]->getSkeleton();
|
|
|
|