mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 06:44:29 +00:00
Player raycast fix
This commit is contained in:
parent
d84990be85
commit
95465a1489
@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#include <components/esm/loadcell.hpp>
|
#include <components/esm/loadcell.hpp>
|
||||||
|
|
||||||
#include "../mwbase/world.hpp"
|
|
||||||
|
|
||||||
#include "sky.hpp"
|
#include "sky.hpp"
|
||||||
#include "effectmanager.hpp"
|
#include "effectmanager.hpp"
|
||||||
#include "npcanimation.hpp"
|
#include "npcanimation.hpp"
|
||||||
@ -417,9 +415,10 @@ namespace MWRender
|
|||||||
mLightRoot->addChild(mPlayerNode);
|
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)
|
void RenderingManager::renderPlayer(const MWWorld::Ptr &player)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user