From Janik Heller, clean up of drawable/node usage

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14824 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-04-07 15:53:17 +00:00
parent 31488eeba1
commit abdb23e367
2 changed files with 1 additions and 22 deletions

View File

@ -373,16 +373,6 @@ public:
++_numStateSetRemoved;
}
for(unsigned int i=0;i<node.getNumDrawables();++i)
{
osg::Drawable* drawable = node.getDrawable(i);
if (drawable && drawable->getStateSet())
{
drawable->setStateSet(0);
++_numStateSetRemoved;
}
}
traverse(node);
}

View File

@ -56,18 +56,7 @@ public:
traverse(node);
}
void apply(osg::Geode& node)
{
if (!_useStateSets && node.getStateSet()) node.setStateSet(0);
for(unsigned int i = 0; i<node.getNumDrawables(); ++i)
{
process(*node.getDrawable(i));
}
traverse(node);
}
void process(osg::Drawable& drawable)
void apply(osg::Drawable& drawable)
{
if (!_useStateSets && drawable.getStateSet())
{