Disjointed free part fix

actorid
Jason Hooks 13 years ago
parent 41769f202c
commit e35aee0f89

@ -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)

@ -233,13 +233,11 @@ void RenderingManager::toggleLight()
void RenderingManager::playAnimationGroup (const MWWorld::Ptr& ptr, const std::string& groupName,
int mode, int number)
{
std::cout<<"play animation " << groupName << ", " << mode << ", " << number << std::endl;
mActors.playAnimationGroup(ptr, groupName, mode, number);
}
void RenderingManager::skipAnimation (const MWWorld::Ptr& ptr)
{
std::cout<<"skip animation"<<std::endl;
mActors.skipAnimation(ptr);
}
void RenderingManager::addTime(){

Loading…
Cancel
Save