mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix bug with polysets attached to lods
This commit is contained in:
parent
aa171dde99
commit
06005cc440
@ -1584,7 +1584,7 @@ separate_switches(EggNode *egg_node) {
|
|||||||
bool parent_has_switch = false;
|
bool parent_has_switch = false;
|
||||||
if (egg_node->is_of_type(EggGroup::get_class_type())) {
|
if (egg_node->is_of_type(EggGroup::get_class_type())) {
|
||||||
EggGroup *egg_group = DCAST(EggGroup, egg_node);
|
EggGroup *egg_group = DCAST(EggGroup, egg_node);
|
||||||
parent_has_switch = egg_group->get_switch_flag() || egg_group->has_lod();
|
parent_has_switch = egg_group->get_switch_flag();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (egg_node->is_of_type(EggGroupNode::get_class_type())) {
|
if (egg_node->is_of_type(EggGroupNode::get_class_type())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user