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