Permalink
Browse files

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
  • Loading branch information...
osg-training-guest committed Aug 27, 2014
1 parent 381c1b7 commit 0df2af35bf6c0d52bd7d5bf1295ab322cbb918d2
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/osg/NodeVisitor.cpp
View
@@ -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)

0 comments on commit 0df2af3

Please sign in to comment.