mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Fix node path issue
Needs to be set so that the 'cullingActive' flag of the node path's end can be checked
This commit is contained in:
parent
4bef8260ab
commit
5e790b567e
2 changed files with 8 additions and 2 deletions
|
@ -147,7 +147,10 @@ void MorphGeometry::cull(osg::NodeVisitor *nv)
|
|||
{
|
||||
if (mLastFrameNumber == nv->getTraversalNumber() || !mDirty)
|
||||
{
|
||||
nv->apply(*getGeometry(mLastFrameNumber));
|
||||
osg::Geometry& geom = *getGeometry(mLastFrameNumber);
|
||||
nv->pushOntoNodePath(&geom);
|
||||
nv->apply(geom);
|
||||
nv->popFromNodePath();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -174,7 +174,10 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
|
|||
|
||||
if ((!mSkeleton->getActive() && mLastFrameNumber != 0) || mLastFrameNumber == nv->getTraversalNumber())
|
||||
{
|
||||
nv->apply(*getGeometry(mLastFrameNumber));
|
||||
osg::Geometry& geom = *getGeometry(mLastFrameNumber);
|
||||
nv->pushOntoNodePath(&geom);
|
||||
nv->apply(geom);
|
||||
nv->popFromNodePath();
|
||||
return;
|
||||
}
|
||||
mLastFrameNumber = nv->getTraversalNumber();
|
||||
|
|
Loading…
Reference in a new issue