Show
Ignore:
Timestamp:
09/09/03 13:54:05 (11 years ago)
Author:
robert
Message:

Updates to osgFX, from Marco Jez, to map Effect across to being derived
from osg::Group rather than from osg::Node.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgfxbrowser/osgfxbrowser.cpp

    r2217 r2244  
    181181                                osg::ref_ptr<osgFX::Effect> effect = effects_[selected_fx_].get(); 
    182182                                effect->setEnabled(fxen_); 
    183                                 effect->setChild(scene_.get()); 
     183                                effect->removeChild(0, effect->getNumChildren()); 
     184                                effect->addChild(scene_.get()); 
    184185                                effect->setUpDemo(); 
    185186                                root_->addChild(effect.get());