forked from bartvdbraak/blender
fix [#28352] Deleting group name in particle system -> panel: Render crashes Blender
This commit is contained in:
parent
8470418b91
commit
a35b3c5b50
@ -867,11 +867,13 @@ static void write_particlesettings(WriteData *wd, ListBase *idbase)
|
||||
for(; dw; dw=dw->next) {
|
||||
/* update indices */
|
||||
dw->index = 0;
|
||||
if(part->dup_group) { /* can be NULL if lining fails or set to None */
|
||||
go = part->dup_group->gobject.first;
|
||||
while(go && go->ob != dw->ob) {
|
||||
go=go->next;
|
||||
dw->index++;
|
||||
}
|
||||
}
|
||||
writestruct(wd, DATA, "ParticleDupliWeight", 1, dw);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user