Added call to handle_cull_callbacks_and_traverse(node) to

CullVisitor::apply(Geode&) to enable cull callbacks to function on geode's.
This commit is contained in:
Robert Osfield
2003-09-08 08:44:05 +00:00
parent cf1fe8edc2
commit 131ebabaf5

View File

@@ -330,6 +330,9 @@ void CullVisitor::apply(Geode& node)
StateSet* node_state = node.getStateSet();
if (node_state) pushStateSet(node_state);
// traverse any call callbacks and traverse any children.
handle_cull_callbacks_and_traverse(node);
RefMatrix& matrix = getModelViewMatrix();
for(unsigned int i=0;i<node.getNumDrawables();++i)
{
@@ -374,6 +377,9 @@ void CullVisitor::apply(Billboard& node)
StateSet* node_state = node.getStateSet();
if (node_state) pushStateSet(node_state);
// traverse any call callbacks and traverse any children.
handle_cull_callbacks_and_traverse(node);
const Vec3& eye_local = getEyeLocal();
const RefMatrix& modelview = getModelViewMatrix();