nametag: Update MarginManager to comply with fac6916151
This commit is contained in:
parent
10b291379f
commit
13b5ca56d6
|
|
@ -25,6 +25,7 @@ TypeHandle MarginManager::_type_handle;
|
|||
MarginManager::
|
||||
MarginManager() : PandaNode("popups") {
|
||||
set_cull_callback();
|
||||
set_renderable();
|
||||
|
||||
_num_available_cells = 0;
|
||||
|
||||
|
|
@ -432,24 +433,6 @@ cull_callback(CullTraverser *, CullTraverserData &) {
|
|||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MarginManager::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 MarginManager::
|
||||
is_renderable() const {
|
||||
// We flag the MarginManager as renderable, even though it
|
||||
// technically doesn't have anything to render, but we do need the
|
||||
// traverser to visit it every frame.
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MarginManager::write
|
||||
// Access: Published, Virtual
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ public:
|
|||
public:
|
||||
// From base class PandaNode.
|
||||
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
|
||||
virtual bool is_renderable() const;
|
||||
|
||||
virtual void write(std::ostream &out, int indent_level) const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue