diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-06-05 23:39:19 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-06-05 23:39:19 +0400 |
commit | b22a6da7b8d1146d37140c4929c8b0f2db56ebd4 (patch) | |
tree | 704002de98dc24face989372c90b6b71095aacbe | |
parent | cf528cc946ba5948e04221035e19c90abb880eca (diff) |
initalize texvec[2] even though its not used, imagewrap checks to make sure its
in a given range.
Kent
-rw-r--r-- | source/blender/render/intern/source/texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/texture.c b/source/blender/render/intern/source/texture.c index 1e6a98d482d..59d134f2665 100644 --- a/source/blender/render/intern/source/texture.c +++ b/source/blender/render/intern/source/texture.c @@ -2434,6 +2434,7 @@ void render_realtime_texture(ShadeInput *shi, Image *ima) texvec[0]= 0.5+0.5*shi->uv[0].uv[0]; texvec[1]= 0.5+0.5*shi->uv[0].uv[1]; + texvec[2] = 0; // initalize it because imagewrap looks at it. if(shi->osatex) { dx[0]= 0.5*shi->uv[0].dxuv[0]; dx[1]= 0.5*shi->uv[0].dxuv[1]; |