* enable ztransp transparency type for new materials by default.
authorMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 02:59:18 +0000 (02:59 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 02:59:18 +0000 (02:59 +0000)
source/blender/blenkernel/intern/material.c

index 50db2bfe706bc13a16aba35d8f6deea45b1794f0..62ec12349aa2e5c1bd6bc605e2b3b8e5049d41d4 100644 (file)
@@ -170,7 +170,7 @@ void init_material(Material *ma)
        ma->sss_front= 1.0f;
        ma->sss_back= 1.0f;
 
-       ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RAYBIAS|MA_TANGENT_STR;
+       ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RAYBIAS|MA_TANGENT_STR|MA_ZTRANSP;
 
        ma->preview = NULL;
 }