Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-11 21:36:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-11 21:36:47 +0300
commit611a5595f978050d4db057ba3e1046e982c18803 (patch)
tree3ec6278f572fcc5fda7f2a8aa7a167653dd2306f /source
parent39cccd2a90a9ba45b68ee1b412b3f0fccf48a03e (diff)
fix for flag being used in the wrong place with recent ApproxAO option.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/material.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 9c56699fa1d..20c475c8b13 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -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;
}