diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-22 09:33:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-22 09:33:06 +0400 |
commit | 0e933d089df3a17327caf8700c19df9f419a2973 (patch) | |
tree | 3382face749345a170712f2f36a91a6ef1cfae67 | |
parent | 30da1336a8d7811fb9409c6e48209f7a533af1cc (diff) |
fix [#27910] baking ambient occlusion, do not consider closer object for blender 2.58a
-rw-r--r-- | source/blender/render/intern/source/convertblender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c index 2a7fb468bfa..7782077604d 100644 --- a/source/blender/render/intern/source/convertblender.c +++ b/source/blender/render/intern/source/convertblender.c @@ -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; |