Skip to content

Commit

Permalink
Changed the NodeVisitor::apply(Drawable&) to call apply(Node&)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14424 16af8721-9629-0410-8352-f15c8da7e697
  • Loading branch information
robertosfield committed Aug 27, 2014
1 parent 381c1b7 commit 0df2af3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/osg/NodeVisitor.cpp
Expand Up @@ -76,19 +76,19 @@ NodeVisitor::~NodeVisitor()
// if (_traversalVisitor) detach from _traversalVisitor;
}

void NodeVisitor::apply(Drawable& drawable)
void NodeVisitor::apply(Node& node)
{
// It all ends here...
traverse(node);
}

void NodeVisitor::apply(Geometry& drawable)
void NodeVisitor::apply(Drawable& drawable)
{
apply(static_cast<Drawable&>(drawable));
apply(static_cast<Node&>(drawable));
}

void NodeVisitor::apply(Node& node)
void NodeVisitor::apply(Geometry& drawable)
{
traverse(node);
apply(static_cast<Drawable&>(drawable));
}

void NodeVisitor::apply(Geode& node)
Expand Down

0 comments on commit 0df2af3

Please sign in to comment.