Refactor osg::Geode to subclass from osg::Group and reuse the NodeList children container

This commit is contained in:
Robert Osfield
2014-06-03 09:23:24 +00:00
parent 2d41cbd0cf
commit 3dde165f14
10 changed files with 120 additions and 287 deletions

View File

@@ -88,12 +88,11 @@ void POVWriterNodeVisitor::apply( Geode& node )
pushStateSet( node.getStateSet() );
// iterate through drawables
const Geode::DrawableList& dl = node.getDrawableList();
for( Geode::DrawableList::const_iterator itr = dl.begin();
itr != dl.end(); ++itr)
for(unsigned int i=0; i<node.getNumDrawables(); ++i)
{
// get drawable
const Drawable *d = itr->get();
const Drawable *d = node.getDrawable(i);
if (!d) continue;
// push state set
const StateSet *ss = d->getStateSet();