Bugfix #22040
[blender.git] / source / blender / editors / sculpt_paint / paint_image.c
index 84816cebc463faf0c861c27bc5f4b469ba2c5aa4..46bcd1f1c0da2cd147b98137fc3f47600fe98b7b 100644 (file)
@@ -4013,8 +4013,9 @@ static void imapaint_image_update(SpaceImage *sima, Image *image, ImBuf *ibuf, s
        if(ibuf->rect_float)
                /* TODO - should just update a portion from imapaintpartial! */
                imb_freerectImBuf(ibuf); /* force recreate of char rect */
+       
        if(ibuf->mipmap[0])
-               imb_freemipmapImBuf(ibuf);
+               ibuf->userflags |= IB_MIPMAP_INVALID;
 
        /* todo: should set_tpage create ->rect? */
        if(texpaint || (sima && sima->lock)) {