Changed NodeVisitor so that is subclasses from osg::Object rather than osg::Referenced to enable it to be used with serialization and scripting

This commit is contained in:
Robert Osfield
2013-09-24 15:08:23 +00:00
parent 874a7ed3b3
commit 796314c339
4 changed files with 20 additions and 10 deletions

View File

@@ -49,6 +49,10 @@ public:
{
}
SwitchDOFVisitor(const SwitchDOFVisitor& sdfv, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) {}
META_Object(osg, SwitchDOFVisitor)
virtual void apply(Group& node)
{
osgSim::MultiSwitch* pMSwitch = dynamic_cast<osgSim::MultiSwitch*>(&node);