diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-04 00:10:43 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-04 00:10:43 +0300 |
commit | 9557c3a66dccc357f7a8cfecca8e23639208afd2 (patch) | |
tree | 698da2c6a34762711f1ee6bb299b19a54ba55248 /source/blender/blenkernel/intern/group.c | |
parent | b41a4764011e875c15e853f3a464bd9d3db3248d (diff) |
Orange: minor tweak for group user counting.
Diffstat (limited to 'source/blender/blenkernel/intern/group.c')
-rw-r--r-- | source/blender/blenkernel/intern/group.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/group.c b/source/blender/blenkernel/intern/group.c index 130e285761a..0dda754e4ce 100644 --- a/source/blender/blenkernel/intern/group.c +++ b/source/blender/blenkernel/intern/group.c @@ -86,11 +86,14 @@ void unlink_group(Group *group) bActionStrip *strip; PartEff *paf; - if(ob->dup_group==group) + if(ob->dup_group==group) { ob->dup_group= NULL; - for(strip= ob->nlastrips.first; strip; strip= strip->next) { - if(strip->object==ob) - strip->object= NULL; + + /* duplicator strips use a group object, we remove it */ + for(strip= ob->nlastrips.first; strip; strip= strip->next) { + if(strip->object) + strip->object= NULL; + } } for(paf= ob->effect.first; paf; paf= paf->next) { if(paf->type==EFF_PARTICLE) { |