From Marco Jez, fixes to osgFX so that effects are compiled correctly.

Fixed title name of osgkeyboardmouse example.
This commit is contained in:
Robert Osfield
2003-12-16 23:43:37 +00:00
parent 7fcdf9b82d
commit 6bdbe942b1
4 changed files with 13 additions and 2 deletions

View File

@@ -122,9 +122,14 @@ void Effect::traverse(osg::NodeVisitor &nv)
tech = techs_[global_sel_tech_].get();
}
// if we could find an active technique, then continue with traversal
// if we could find an active technique, then continue with traversal,
// else go for default traversal (no effect)
if (tech) {
tech->traverse(nv, this);
} else {
if (nv.getTraversalMode() == osg::NodeVisitor::TRAVERSE_ALL_CHILDREN) {
inherited_traverse(nv);
}
}
// wow, we're finished! :)