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
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2006-11-13 04:24:46 +0300
committerMatt Ebb <matt@mke3.net>2006-11-13 04:24:46 +0300
commitfb9f21b6146c51b2249b7c3abfc5ad42d620ae84 (patch)
treea1bcc9ceacdba6073718d0062824cbb9ef703062 /source/blender/blenkernel/intern/material.c
parent521815eab2b9753618f262c774bb8017cb4f8edf (diff)
Set the default material preview type to 'sphere' for newly added materials.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 2aba911bf54..47977adbbd7 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -142,6 +142,7 @@ void init_material(Material *ma)
ma->rampfac_col= 1.0;
ma->rampfac_spec= 1.0;
ma->pr_lamp= 3; /* two lamps, is bits */
+ ma->pr_type= MA_SPHERE;
ma->mode= MA_TRACEBLE|MA_SHADBUF|MA_SHADOW|MA_RADIO|MA_RAYBIAS|MA_TANGENT_STR;
}