|
@@ -251,6 +251,21 @@ cull_callback(CullTraverser *trav, CullTraverserData &data) {
|
|
|
return true;
|
|
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
|
|
// Function: CollisionVisualizer::output
|