mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
copy_all_properties() should copy into_colilde_mask too
This commit is contained in:
parent
92881a8f91
commit
d86c60305c
@ -2051,7 +2051,9 @@ get_collide_mask() const {
|
|||||||
// Access: Published
|
// Access: Published
|
||||||
// Description: Recursively applies the indicated CollideMask to the
|
// Description: Recursively applies the indicated CollideMask to the
|
||||||
// into_collide_masks for all nodes at this level and
|
// into_collide_masks for all nodes at this level and
|
||||||
// below. Only nodes
|
// below. If node_type is not TypeHandle::none(), then
|
||||||
|
// only nodes matching (or inheriting from) the
|
||||||
|
// indicated PandaNode subclass are modified.
|
||||||
//
|
//
|
||||||
// The default is to change all bits, but if
|
// The default is to change all bits, but if
|
||||||
// bits_to_change is not all bits on, then only the bits
|
// bits_to_change is not all bits on, then only the bits
|
||||||
|
@ -1678,6 +1678,7 @@ copy_all_properties(PandaNode *other) {
|
|||||||
cdataw->_effects = cdatar->_effects;
|
cdataw->_effects = cdatar->_effects;
|
||||||
cdataw->_draw_control_mask = cdatar->_draw_control_mask;
|
cdataw->_draw_control_mask = cdatar->_draw_control_mask;
|
||||||
cdataw->_draw_show_mask = cdatar->_draw_show_mask;
|
cdataw->_draw_show_mask = cdatar->_draw_show_mask;
|
||||||
|
cdataw->_into_collide_mask = cdatar->_into_collide_mask;
|
||||||
|
|
||||||
TagData::const_iterator ti;
|
TagData::const_iterator ti;
|
||||||
for (ti = cdatar->_tag_data.begin();
|
for (ti = cdatar->_tag_data.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user