Fix T42590 baking bakes to duplicated objects too.

Only allow non instanced renderobjects to be baked.
This commit is contained in:
Antonis Ryakiotakis 2014-11-13 18:54:19 +01:00
parent 15a7a5a08c
commit 78e0791a54
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by issue #42590, Baking an object in a dupligroup bakes for each instance in that group
1 changed files with 4 additions and 0 deletions

View 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);