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