fix [#27910] baking ambient occlusion, do not consider closer object for blender 2.58a
This commit is contained in:
@@ -5685,7 +5685,7 @@ void RE_Database_Baking(Render *re, Main *bmain, Scene *scene, unsigned int lay,
|
||||
Object *camera;
|
||||
float mat[4][4];
|
||||
float amb[3];
|
||||
const short onlyselected= !ELEM3(type, RE_BAKE_LIGHT, RE_BAKE_ALL, RE_BAKE_SHADOW);
|
||||
const short onlyselected= !ELEM4(type, RE_BAKE_LIGHT, RE_BAKE_ALL, RE_BAKE_SHADOW, RE_BAKE_AO);
|
||||
const short nolamps= ELEM3(type, RE_BAKE_NORMALS, RE_BAKE_TEXTURE, RE_BAKE_DISPLACEMENT);
|
||||
|
||||
re->main= bmain;
|
||||
|
||||
Reference in New Issue
Block a user