Fix from Don Tidrow for bug when moving between RenderGraph when popping back

up to common parents.
This commit is contained in:
Robert Osfield
2002-10-23 07:46:11 +00:00
parent 3be6ffd9c3
commit f5f20e4ac1

View File

@@ -225,7 +225,11 @@ class OSGUTIL_EXPORT RenderGraph : public osg::Referenced
}
// now pop back up both parent paths until they agree.
while (sg_curr->_parent!=sg_new->_parent)
// DRT - 10/22/02
// should be this to conform with above case where two RenderGraph
// nodes have the same parent
while (sg_curr != sg_new)
{
if (sg_curr->_stateset.valid()) state.popStateSet();
sg_curr = sg_curr->_parent;