Fix node path issue

Needs to be set so that the 'cullingActive' flag of the node path's end can be checked
pull/286/head
scrawl 7 years ago
parent 4bef8260ab
commit 5e790b567e

@ -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…
Cancel
Save