Changed the NodeVisitor::apply(Drawable&) to call apply(Node&)

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14424 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-08-27 15:07:47 +00:00
parent f6cc4440a1
commit 77c0f5f675

View File

@@ -76,9 +76,14 @@ NodeVisitor::~NodeVisitor()
// if (_traversalVisitor) detach from _traversalVisitor;
}
void NodeVisitor::apply(Node& node)
{
traverse(node);
}
void NodeVisitor::apply(Drawable& drawable)
{
// It all ends here...
apply(static_cast<Node&>(drawable));
}
void NodeVisitor::apply(Geometry& drawable)
@@ -86,11 +91,6 @@ void NodeVisitor::apply(Geometry& drawable)
apply(static_cast<Drawable&>(drawable));
}
void NodeVisitor::apply(Node& node)
{
traverse(node);
}
void NodeVisitor::apply(Geode& node)
{
apply(static_cast<Group&>(node));