Fix T42590 baking bakes to duplicated objects too.
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 13 Nov 2014 17:54:19 +0000 (18:54 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 13 Nov 2014 17:54:32 +0000 (18:54 +0100)
Only allow non instanced renderobjects to be baked.

source/blender/render/intern/source/bake.c

index 15634c9349189842560f562c4765bee28e27ecc3..9b22c7d8bad73c2584dd4db26a17b4b2c927e14b 100644 (file)
@@ -613,6 +613,10 @@ static int get_next_bake_face(BakeShade *bs)
        for (; obi; obi = obi->next, v = 0) {
                obr = obi->obr;
 
+               /* only allow non instances here */
+               if (obr->flag & R_INSTANCEABLE)
+                       continue;
+
                for (; v < obr->totvlak; v++) {
                        vlr = RE_findOrAddVlak(obr, v);