fix for flag being used in the wrong place with recent ApproxAO option.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 11 Feb 2010 18:36:47 +0000 (18:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 11 Feb 2010 18:36:47 +0000 (18:36 +0000)
source/blender/blenkernel/intern/material.c

index 9c56699fa1d47a03e5b249fb89782a7042a34bff..20c475c8b13eb14cb46c3ac3002dfe6ba9e78dc3 100644 (file)
@@ -188,8 +188,8 @@ void init_material(Material *ma)
        ma->vol.ms_diff = 1.f;
        ma->vol.ms_intensity = 1.f;
        
-       ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RAYBIAS|MA_TANGENT_STR|MA_ZTRANSP|MA_APPROX_OCCLUSION;
-
+       ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RAYBIAS|MA_TANGENT_STR|MA_ZTRANSP;
+       ma->shade_flag= MA_APPROX_OCCLUSION;
        ma->preview = NULL;
 }