Updates to osgFX, from Marco Jez, to map Effect across to being derived

from osg::Group rather than from osg::Node.
This commit is contained in:
Robert Osfield
2003-09-09 11:54:05 +00:00
parent 5c3c0ed17c
commit 584f805327
15 changed files with 172 additions and 223 deletions

View File

@@ -180,7 +180,8 @@ protected:
root_->removeChild(0, root_->getNumChildren());
osg::ref_ptr<osgFX::Effect> effect = effects_[selected_fx_].get();
effect->setEnabled(fxen_);
effect->setChild(scene_.get());
effect->removeChild(0, effect->getNumChildren());
effect->addChild(scene_.get());
effect->setUpDemo();
root_->addChild(effect.get());
}