mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix hide/show bug
This commit is contained in:
parent
1efa9e716e
commit
68c236069f
@ -3631,6 +3631,13 @@ update_bounds(int pipeline_stage, PandaNode::CDLockedStageReader &cdata) {
|
|||||||
DrawMask net_draw_control_mask, net_draw_show_mask;
|
DrawMask net_draw_control_mask, net_draw_show_mask;
|
||||||
bool renderable = is_renderable();
|
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()) {
|
if (drawmask_cat.is_debug()) {
|
||||||
drawmask_cat.debug(false)
|
drawmask_cat.debug(false)
|
||||||
<< "net_draw_control_mask = " << net_draw_control_mask
|
<< "net_draw_control_mask = " << net_draw_control_mask
|
||||||
|
Loading…
x
Reference in New Issue
Block a user