fix [#27910] baking ambient occlusion, do not consider closer object for blender...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 22 Jul 2011 05:33:06 +0000 (05:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 22 Jul 2011 05:33:06 +0000 (05:33 +0000)
source/blender/render/intern/source/convertblender.c

index 2a7fb468bfa5975f46464ae7ded0936d90f61813..7782077604d12be887662255d7a93650d5498f51 100644 (file)
@@ -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;