mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 11:26:37 +00:00 
			
		
		
		
	Disjointed free part fix
This commit is contained in:
		
							parent
							
								
									41769f202c
								
							
						
					
					
						commit
						e35aee0f89
					
				
					 2 changed files with 9 additions and 7 deletions
				
			
		|  | @ -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) | ||||||
|  |  | ||||||
|  | @ -233,13 +233,11 @@ void RenderingManager::toggleLight() | ||||||
| void RenderingManager::playAnimationGroup (const MWWorld::Ptr& ptr, const std::string& groupName, | void RenderingManager::playAnimationGroup (const MWWorld::Ptr& ptr, const std::string& groupName, | ||||||
|      int mode, int number) |      int mode, int number) | ||||||
| { | { | ||||||
| std::cout<<"play animation " << groupName << ", " << mode << ", " << number << std::endl; |  | ||||||
|     mActors.playAnimationGroup(ptr, groupName, mode, number); |     mActors.playAnimationGroup(ptr, groupName, mode, number); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void RenderingManager::skipAnimation (const MWWorld::Ptr& ptr) | void RenderingManager::skipAnimation (const MWWorld::Ptr& ptr) | ||||||
| { | { | ||||||
| std::cout<<"skip animation"<<std::endl; |  | ||||||
|     mActors.skipAnimation(ptr); |     mActors.skipAnimation(ptr); | ||||||
| } | } | ||||||
| void RenderingManager::addTime(){ | void RenderingManager::addTime(){ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue