mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
fix CollisionVisualizer
This commit is contained in:
parent
4262d1c099
commit
bc14778fac
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user