Fix T42590 baking bakes to duplicated objects too.
Only allow non instanced renderobjects to be baked.
This commit is contained in:
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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue