mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-28 17:56:37 +00:00 
			
		
		
		
	Fix player rendering
This commit is contained in:
		
							parent
							
								
									fef6284f15
								
							
						
					
					
						commit
						00879ab20e
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -95,7 +95,9 @@ namespace MWRender | |||
|         /// Restore default camera distance for current mode.
 | ||||
|         void setCameraDistance(); | ||||
| 
 | ||||
|         void setAnimation(MWRender::NpcAnimation *anim); | ||||
|         void setAnimation(NpcAnimation *anim); | ||||
|         NpcAnimation *getAnimation() const | ||||
|         { return mAnimation; } | ||||
| 
 | ||||
|         void setHeight(float height); | ||||
|         float getHeight(); | ||||
|  |  | |||
|  | @ -921,7 +921,7 @@ void RenderingManager::setupExternalRendering (MWRender::ExternalRendering& rend | |||
| Animation* RenderingManager::getAnimation(const MWWorld::Ptr &ptr) | ||||
| { | ||||
|     Animation *anim = mActors.getAnimation(ptr); | ||||
|     // TODO: Check mObjects too.
 | ||||
|     if(!anim) anim = mPlayer->getAnimation(); | ||||
|     return anim; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue