diff options
author | Kent Mein <mein@cs.umn.edu> | 2003-11-08 00:03:58 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2003-11-08 00:03:58 +0300 |
commit | b7debeb7921fe0a91fd75a6bbe58fea70410a522 (patch) | |
tree | d313229ddfe78fbb62661716325d98e92fad55c5 /source | |
parent | 21c2e8f74f43928daef6ddecff17f3709f155082 (diff) |
Updated so that Default Vars button will reset envmap data, if it exists.
doesn't do object its tied to but does everything else for envmaps
now. (clipsta, depth, etc...)
Kent
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/texture.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index 16141b61e2b..5f32b850b97 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -348,6 +348,14 @@ void default_tex(Tex *tex) tex->gfac= 1.0; tex->bfac= 1.0; + if (tex->env) { + tex->env->stype=ENV_STATIC; + tex->env->clipsta=0.1; + tex->env->clipend=100; + tex->env->cuberes=100; + tex->env->depth=0; + } + pit = tex->plugin; if (pit) { varstr= pit->varstr; |