diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-24 00:49:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-24 00:49:06 +0400 |
commit | a35b3c5b505ded03bc8a233e6943c3d9fe3faeb5 (patch) | |
tree | e8f79ec6c43710e28fe125b96ea8fcd86386a55f /source/blender/blenloader | |
parent | 8470418b918d7112e72f98d406a47b4ab1f15d4f (diff) |
fix [#28352] Deleting group name in particle system -> panel: Render crashes Blender
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 085cd2cb29c..5b7fcc0e935 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -867,10 +867,12 @@ static void write_particlesettings(WriteData *wd, ListBase *idbase) for(; dw; dw=dw->next) { /* update indices */ dw->index = 0; - go = part->dup_group->gobject.first; - while(go && go->ob != dw->ob) { - go=go->next; - dw->index++; + 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); } |