mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix collide mask on flatten
This commit is contained in:
parent
3c82ad32d2
commit
32bcebc766
@ -1678,7 +1678,11 @@ 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;
|
|
||||||
|
// The collide mask becomes the union of the two masks. This is
|
||||||
|
// important to preserve properties such as the default GeomNode
|
||||||
|
// bitmask.
|
||||||
|
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