diff -r 7079dcc3bd74 -r 929aad02c5f2 src/raytracer.cc --- a/src/raytracer.cc Fri Dec 14 16:51:22 2007 +0100 +++ b/src/raytracer.cc Mon Dec 17 22:03:50 2007 +0100 @@ -190,7 +190,7 @@ } // ambient occlusion - if (ao_samples) + if (!from_inside && ao_samples) { Float miss = 0; for (int i = 0; i < ao_samples; i++) {