Bugfix for duplivert render instancing with certain dupligroup setups.

This commit is contained in:
Brecht Van Lommel
2008-02-20 14:10:41 +00:00
parent cf27a896fa
commit 0e1ae457ec

View File

@@ -4070,6 +4070,9 @@ static ObjectRen *find_dupligroup_dupli(Render *re, Object *ob, int psysindex)
{
ObjectRen *obr;
if(ob->transflag & OB_RENDER_DUPLI)
return NULL;
for(obr=re->objecttable.first; obr; obr=obr->next)
if(obr->ob == ob && obr->psysindex == psysindex && (obr->flag & R_INSTANCEABLE))
return obr;