mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
comply by elsid review
Signed-off-by: Bret Curtis <psi29a@gmail.com>
This commit is contained in:
parent
ce505a9bb3
commit
cf439581e1
5 changed files with 16 additions and 12 deletions
|
@ -325,7 +325,7 @@ void loadRenderingNode(ViewData::Entry& entry, ViewData* vd, int vertexLodMod, f
|
|||
|
||||
if (!entry.mRenderingNode)
|
||||
{
|
||||
auto pat = new SceneUtil::PositionAttitudeTransform;
|
||||
osg::ref_ptr<SceneUtil::PositionAttitudeTransform> pat = new SceneUtil::PositionAttitudeTransform;
|
||||
pat->setPosition(osg::Vec3f(entry.mNode->getCenter().x()*cellWorldSize, entry.mNode->getCenter().y()*cellWorldSize, 0.f));
|
||||
|
||||
const osg::Vec2f& center = entry.mNode->getCenter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue