mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	Fix for player collision cleanup issue
This commit is contained in:
		
							parent
							
								
									6555ee8d80
								
							
						
					
					
						commit
						8b3054aa8b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -2107,6 +2107,7 @@ namespace MWWorld | |||
|         { | ||||
|             // Remove the old CharacterController
 | ||||
|             MWBase::Environment::get().getMechanicsManager()->remove(getPlayerPtr()); | ||||
|             mPhysics->remove(getPlayerPtr()); | ||||
| 
 | ||||
|             mPlayer->set(player); | ||||
|         } | ||||
|  | @ -2128,6 +2129,7 @@ namespace MWWorld | |||
| 
 | ||||
|         std::string model = getPlayerPtr().getClass().getModel(getPlayerPtr()); | ||||
|         model = Misc::ResourceHelpers::correctActorModelPath(model, mResourceSystem->getVFS()); | ||||
|         mPhysics->remove(getPlayerPtr()); | ||||
|         mPhysics->addActor(getPlayerPtr(), model); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue