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:
parent
31488eeba1
commit
abdb23e367
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user