mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix sphere-trigger
This commit is contained in:
parent
ac8bb40c69
commit
e27ed62d8b
@ -1054,9 +1054,17 @@ cs_type:
|
||||
EggGroup::CollisionSolidType f = EggGroup::string_cs_type(strval);
|
||||
if (f == EggGroup::CST_none) {
|
||||
eggyywarning("Unknown collision solid type " + strval);
|
||||
} else {
|
||||
if (f == EggGroup::CST_polyset && group->get_cs_type() != EggGroup::CST_none) {
|
||||
// By convention, a CST_polyset doesn't replace any existing
|
||||
// contradictory type, so ignore it if this happens. This
|
||||
// allows the artist to place, for instance, <ObjectType> {
|
||||
// sphere } and <ObjectType> { trigger } together.
|
||||
|
||||
} else {
|
||||
group->set_cs_type(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user