Bug fix: voxeldata texture extension didn't work.

* Code was using tex->extend instead of vd->extend.
This commit is contained in:
Janne Karhu
2010-11-26 14:33:44 +00:00
parent f2c9eff803
commit 4efffc90f9

View File

@@ -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)) {