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:
authorJanne Karhu <jhkarh@gmail.com>2010-11-26 17:33:44 +0300
committerJanne Karhu <jhkarh@gmail.com>2010-11-26 17:33:44 +0300
commit4efffc90f90c16bc515aecc2e3274f420bfe84dc (patch)
treedd90e11e167009195c09e0cdf13d71f15a345328 /source
parentf2c9eff803ce14f92816c58fb52216bb9c45a6dd (diff)
Bug fix: voxeldata texture extension didn't work.
* Code was using tex->extend instead of vd->extend.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/voxeldata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/voxeldata.c b/source/blender/render/intern/source/voxeldata.c
index f7e51ac0a96..ac4aba3e4de 100644
--- a/source/blender/render/intern/source/voxeldata.c
+++ b/source/blender/render/intern/source/voxeldata.c
@@ -361,7 +361,7 @@ int voxeldatatex(struct Tex *tex, float *texvec, struct TexResult *texres)
add_v3_v3(co, offset);
/* co is now in the range 0.0, 1.0 */
- switch (tex->extend) {
+ switch (vd->extend) {
case TEX_CLIP:
{
if ((co[0] < 0.f || co[0] > 1.f) || (co[1] < 0.f || co[1] > 1.f) || (co[2] < 0.f || co[2] > 1.f)) {