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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user