mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix RopeNode and SheetNode (weren't rendering)
This commit is contained in:
parent
e5cf8b1517
commit
b0dd18aa3f
@ -186,6 +186,21 @@ cull_callback(CullTraverser *trav, CullTraverserData &data) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: RopeNode::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 RopeNode::
|
||||||
|
is_renderable() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: RopeNode::output
|
// Function: RopeNode::output
|
||||||
// Access: Public, Virtual
|
// Access: Public, Virtual
|
||||||
|
@ -49,6 +49,7 @@ public:
|
|||||||
|
|
||||||
virtual bool safe_to_transform() const;
|
virtual bool safe_to_transform() const;
|
||||||
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
|
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
|
||||||
|
virtual bool is_renderable() const;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
enum RenderMode {
|
enum RenderMode {
|
||||||
|
@ -163,6 +163,21 @@ cull_callback(CullTraverser *trav, CullTraverserData &data) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: SheetNode::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 SheetNode::
|
||||||
|
is_renderable() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: SheetNode::output
|
// Function: SheetNode::output
|
||||||
// Access: Public, Virtual
|
// Access: Public, Virtual
|
||||||
|
@ -47,6 +47,7 @@ public:
|
|||||||
|
|
||||||
virtual bool safe_to_transform() const;
|
virtual bool safe_to_transform() const;
|
||||||
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
|
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
|
||||||
|
virtual bool is_renderable() const;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE void set_surface(NurbsSurfaceEvaluator *surface);
|
INLINE void set_surface(NurbsSurfaceEvaluator *surface);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user