Remove redundant handling of Geode in SharedStateManager
This commit is contained in:
@@ -61,7 +61,6 @@ namespace osgDB {
|
||||
void share(osg::Node *node, OpenThreads::Mutex *mt=0);
|
||||
|
||||
void apply(osg::Node& node);
|
||||
void apply(osg::Geode& geode);
|
||||
|
||||
// Answers the question "Will this state set be eliminated by
|
||||
// the SharedStateManager because an equivalent one has been
|
||||
|
||||
@@ -93,20 +93,6 @@ void SharedStateManager::apply(osg::Node& node)
|
||||
if(ss) process(ss, &node);
|
||||
traverse(node);
|
||||
}
|
||||
void SharedStateManager::apply(osg::Geode& geode)
|
||||
{
|
||||
osg::StateSet* ss = geode.getStateSet();
|
||||
if(ss) process(ss, &geode);
|
||||
for(unsigned int i=0;i<geode.getNumDrawables();++i)
|
||||
{
|
||||
osg::Drawable* drawable = geode.getDrawable(i);
|
||||
if(drawable)
|
||||
{
|
||||
ss = drawable->getStateSet();
|
||||
if(ss) process(ss, drawable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool SharedStateManager::isShared(osg::StateSet* ss)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user