mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 15:25:54 -04:00
egg2pg: Fix infinite recursion when <Collide>
used with <Line>
Fixes #1515
This commit is contained in:
parent
94ebd7c953
commit
787e14fade
@ -2982,7 +2982,8 @@ make_collision_plane(EggGroup *egg_group, CollisionNode *cnode,
|
||||
cnode->add_solid(csplane);
|
||||
return;
|
||||
}
|
||||
} else if ((*ci)->is_of_type(EggCompositePrimitive::get_class_type())) {
|
||||
} else if ((*ci)->is_of_type(EggCompositePrimitive::get_class_type()) &&
|
||||
!(*ci)->is_of_type(EggLine::get_class_type())) {
|
||||
EggCompositePrimitive *comp = DCAST(EggCompositePrimitive, *ci);
|
||||
PT(EggGroup) temp_group = new EggGroup;
|
||||
if (comp->triangulate_into(temp_group)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user