Fix #98583: Appending a particle system pulls in an unused collection #104814

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:98583 into blender-v3.5-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Philipp Oeser 55b3352ba1 Fix #98583: Appending a particle system pulls in an unused collection
When setting a `ParticleSettings->instance_collection` but having
`ParticleSettings->render_type` something other than `PART_DRAW_GR`, the
collection would still be pulled in when appending. Same thing for
`ParticleSettings->instance_object` and `PART_DRAW_OB`.

This seems unnecessary, and since we do similar - conditional -
expansions with `BLO_expand`, this patch now only pulls in the object/
collection when actually used.
2023-02-16 12:08:44 +01:00