diff options
author | Janne Karhu <jhkarh@gmail.com> | 2009-04-06 04:43:59 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2009-04-06 04:43:59 +0400 |
commit | fe562f0dd4be9c9aecffc777a9a91a57540eb8c6 (patch) | |
tree | 64ad66485ade00b158951e06245b2232d7d2d212 /source | |
parent | ab467e72382c125642e7f7d03308a6913ec9c716 (diff) |
Fix for: [#18482] Mixed object and halo visualization for particles needs "Emitter" to be activated.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 9e474c19619..06ba8f16a3b 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -4374,24 +4374,8 @@ void RE_Database_Free(Render *re) static int allow_render_object(Object *ob, int nolamps, int onlyselected, Object *actob) { /* override not showing object when duplis are used with particles */ - if(ob->transflag & OB_DUPLIPARTS){ - int allow= 0; - - if(ob->particlesystem.first) { - ParticleSystem *psys; - ParticleSettings *part; - - for(psys=ob->particlesystem.first; psys; psys=psys->next){ - part=psys->part; - - if(part->draw & PART_DRAW_EMITTER) - allow= 1; - } - } - - if(!allow) - return 0; - } + if(ob->transflag & OB_DUPLIPARTS) + ; /* let particle system(s) handle showing vs. not showing */ else if((ob->transflag & OB_DUPLI) && !(ob->transflag & OB_DUPLIFRAMES)) return 0; |