Added src/osg/NodeCallback.cpp.
This commit is contained in:
parent
5ceefdcc12
commit
8f6b7d04a4
11
src/osg/NodeCallback.cpp
Normal file
11
src/osg/NodeCallback.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <osg/Node>
|
||||||
|
#include <osg/NodeCallback>
|
||||||
|
#include <osg/NodeVisitor>
|
||||||
|
|
||||||
|
using namespace osg;
|
||||||
|
|
||||||
|
void NodeCallback::traverse(Node* node,NodeVisitor* nv)
|
||||||
|
{
|
||||||
|
if (_nestedCallback.valid()) (*_nestedCallback)(node,nv);
|
||||||
|
else nv->traverse(*node);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user