forked from teamnwah/openmw-tes3coop
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)
|
if (mLastFrameNumber == nv->getTraversalNumber() || !mDirty)
|
||||||
{
|
{
|
||||||
nv->apply(*getGeometry(mLastFrameNumber));
|
osg::Geometry& geom = *getGeometry(mLastFrameNumber);
|
||||||
|
nv->pushOntoNodePath(&geom);
|
||||||
|
nv->apply(geom);
|
||||||
|
nv->popFromNodePath();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,10 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
|
||||||
|
|
||||||
if ((!mSkeleton->getActive() && mLastFrameNumber != 0) || mLastFrameNumber == nv->getTraversalNumber())
|
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;
|
return;
|
||||||
}
|
}
|
||||||
mLastFrameNumber = nv->getTraversalNumber();
|
mLastFrameNumber = nv->getTraversalNumber();
|
||||||
|
|
Loading…
Reference in a new issue