Fixed bug with multires baking to float buffers.
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 21 Jul 2011 08:10:34 +0000 (08:10 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 21 Jul 2011 08:10:34 +0000 (08:10 +0000)
Was missed a flag to set rect marked as changed.

source/blender/editors/object/object_bake.c

index bdd911d68ee2ae8f473fefef62793e4a1effb9e6..679e4e58017f6c03a0d9b78456242f7521ab5d4e 100644 (file)
@@ -860,6 +860,10 @@ static void finish_images(MultiresBakeRender *bkr)
                RE_bake_ibuf_filter(ibuf, (char *)ibuf->userdata, bkr->bake_filter);
 
                ibuf->userflags|= IB_BITMAPDIRTY;
+
+               if(ibuf->rect_float)
+                       ibuf->userflags|= IB_RECT_INVALID;
+
                if(ibuf->mipmap[0]) {
                        ibuf->userflags|= IB_MIPMAP_INVALID;
                        imb_freemipmapImBuf(ibuf);