mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 14:56:38 +00:00 
			
		
		
		
	Player raycast fix
This commit is contained in:
		
							parent
							
								
									d84990be85
								
							
						
					
					
						commit
						95465a1489
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -27,8 +27,6 @@ | |||
| 
 | ||||
| #include <components/esm/loadcell.hpp> | ||||
| 
 | ||||
| #include "../mwbase/world.hpp" | ||||
| 
 | ||||
| #include "sky.hpp" | ||||
| #include "effectmanager.hpp" | ||||
| #include "npcanimation.hpp" | ||||
|  | @ -417,9 +415,10 @@ namespace MWRender | |||
|             mLightRoot->addChild(mPlayerNode); | ||||
|         } | ||||
| 
 | ||||
|         player.getRefData().setBaseNode(mPlayerNode); | ||||
|         mPlayerNode->setUserDataContainer(new osg::DefaultUserDataContainer); | ||||
|         mPlayerNode->getUserDataContainer()->addUserObject(new PtrHolder(player)); | ||||
| 
 | ||||
|         //attachCameraTo(player);
 | ||||
|         player.getRefData().setBaseNode(mPlayerNode); | ||||
|     } | ||||
| 
 | ||||
|     void RenderingManager::renderPlayer(const MWWorld::Ptr &player) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue