fix [#32537] Inconsistent behaviour of Texture Baker
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2012 03:05:20 +0000 (03:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2012 03:05:20 +0000 (03:05 +0000)
feedback looks wen't being detected in some cases causing very confusing behavior.

source/blender/render/intern/source/imagetexture.c

index e4fb87e..7f0484c 100644 (file)
@@ -1054,6 +1054,8 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
 
        if ((ibuf == NULL) || ((ibuf->rect == NULL) && (ibuf->rect_float == NULL))) return retval;
 
+       ima->flag |= IMA_USED_FOR_RENDER;
+
        /* mipmap test */
        image_mipmap_test(tex, ibuf);