mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 18:06:42 +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 <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…
Reference in a new issue