fix hide/show bug

This commit is contained in:
David Rose 2008-11-14 23:34:32 +00:00
parent 1efa9e716e
commit 68c236069f

View File

@ -3631,6 +3631,13 @@ update_bounds(int pipeline_stage, PandaNode::CDLockedStageReader &cdata) {
DrawMask net_draw_control_mask, net_draw_show_mask;
bool renderable = is_renderable();
if (renderable) {
// If this node is itself renderable, it contributes to the net
// draw mask.
net_draw_control_mask = cdata->_draw_control_mask;
net_draw_show_mask = cdata->_draw_show_mask;
}
if (drawmask_cat.is_debug()) {
drawmask_cat.debug(false)
<< "net_draw_control_mask = " << net_draw_control_mask