Fix #98583: Appending a particle system pulls in an unused collection #104814
|
@ -436,8 +436,12 @@ static void particle_settings_blend_read_lib(BlendLibReader *reader, ID *id)
|
||||||
static void particle_settings_blend_read_expand(BlendExpander *expander, ID *id)
|
static void particle_settings_blend_read_expand(BlendExpander *expander, ID *id)
|
||||||
{
|
{
|
||||||
ParticleSettings *part = (ParticleSettings *)id;
|
ParticleSettings *part = (ParticleSettings *)id;
|
||||||
BLO_expand(expander, part->instance_object);
|
if (part->ren_as == PART_DRAW_OB) {
|
||||||
BLO_expand(expander, part->instance_collection);
|
BLO_expand(expander, part->instance_object);
|
||||||
|
}
|
||||||
|
else if (part->ren_as == PART_DRAW_GR) {
|
||||||
|
BLO_expand(expander, part->instance_collection);
|
||||||
|
}
|
||||||
BLO_expand(expander, part->force_group);
|
BLO_expand(expander, part->force_group);
|
||||||
BLO_expand(expander, part->bb_ob);
|
BLO_expand(expander, part->bb_ob);
|
||||||
BLO_expand(expander, part->collision_group);
|
BLO_expand(expander, part->collision_group);
|
||||||
|
|
Loading…
Reference in New Issue