Bugfix for duplivert render instancing with certain dupligroup setups.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 20 Feb 2008 14:10:41 +0000 (14:10 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 20 Feb 2008 14:10:41 +0000 (14:10 +0000)
source/blender/render/intern/source/convertblender.c

index 34f9fe13ef98b15ed0b02859e76ce71930e7cd90..2873792352f1a705e42b4f771fa80b2241c659df 100644 (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;