1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 01:36:44 +00:00

Player raycast fix

This commit is contained in:
scrawl 2015-05-24 04:00:35 +02:00
parent d84990be85
commit 95465a1489

View file

@ -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)