mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T64414: crash deleting collection used for particle group and use count
This commit is contained in:
parent
0977937286
commit
06099f391e
1 changed files with 5 additions and 2 deletions
|
|
@ -387,8 +387,11 @@ void psys_find_group_weights(ParticleSettings *part)
|
|||
/* Find object pointers based on index. If the collection is linked from
|
||||
* another library linking may not have the object pointers available on
|
||||
* file load, so we have to retrieve them later. See T49273. */
|
||||
const ListBase instance_collection_objects = BKE_collection_object_cache_get(
|
||||
part->instance_collection);
|
||||
ListBase instance_collection_objects = {NULL, NULL};
|
||||
|
||||
if (part->instance_collection) {
|
||||
instance_collection_objects = BKE_collection_object_cache_get(part->instance_collection);
|
||||
}
|
||||
|
||||
for (ParticleDupliWeight *dw = part->instance_weights.first; dw; dw = dw->next) {
|
||||
if (dw->ob == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue