fix CollisionVisualizer

This commit is contained in:
David Rose 2009-04-08 17:53:53 +00:00
parent 4262d1c099
commit bc14778fac
2 changed files with 16 additions and 0 deletions

View File

@ -251,6 +251,21 @@ cull_callback(CullTraverser *trav, CullTraverserData &data) {
return true;
}
////////////////////////////////////////////////////////////////////
// Function: CollisionVisualizer::is_renderable
// Access: Public, Virtual
// Description: Returns true if there is some value to visiting this
// particular node during the cull traversal for any
// camera, false otherwise. This will be used to
// optimize the result of get_net_draw_show_mask(), so
// that any subtrees that contain only nodes for which
// is_renderable() is false need not be visited.
////////////////////////////////////////////////////////////////////
bool CollisionVisualizer::
is_renderable() const {
return true;
}
////////////////////////////////////////////////////////////////////
// Function: CollisionVisualizer::output

View File

@ -51,6 +51,7 @@ public:
// from parent class PandaNode.
virtual PandaNode *make_copy() const;
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
virtual bool is_renderable() const;
virtual void output(ostream &out) const;
// from parent class CollisionRecorder.