diff --git a/source/blender/render/intern/source/imagetexture.c b/source/blender/render/intern/source/imagetexture.c index e64c3d4f825..04010522c12 100644 --- a/source/blender/render/intern/source/imagetexture.c +++ b/source/blender/render/intern/source/imagetexture.c @@ -1055,6 +1055,13 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex fx -= xs; fy -= ys; } + else if ((tex->flag & TEX_CHECKER_ODD) == 0 && + (tex->flag & TEX_CHECKER_EVEN) == 0) + { + if (ima) + BKE_image_pool_release_ibuf(ima, ibuf, pool); + return retval; + } else { int xs1 = (int)floorf(fx - minx); int ys1 = (int)floorf(fy - miny); @@ -1476,6 +1483,13 @@ int imagewraposa(Tex *tex, Image *ima, ImBuf *ibuf, const float texvec[3], const fx-= xs; fy-= ys; } + else if ((tex->flag & TEX_CHECKER_ODD) == 0 && + (tex->flag & TEX_CHECKER_EVEN) == 0) + { + if (ima) + BKE_image_pool_release_ibuf(ima, ibuf, pool); + return retval; + } else { xs1= (int)floor(fx-minx);