diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-09 17:13:16 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-09 17:13:16 +0400 |
commit | 18e9d9c3e2a489b200b1344acd09947f3c772715 (patch) | |
tree | 12b842cc3576aeedf402bea605cefa71b7b007e8 /source/blender | |
parent | 88a13d73958c050bde4364b115faddfe26b0d47c (diff) |
Recreate mipmaps after undo in image editor
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 29bcb191b46..cb807117198 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -440,6 +440,8 @@ static void image_undo_restore(bContext *C, ListBase *lb) GPU_free_image(ima); /* force OpenGL reload */ if(ibuf->rect_float) ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */ + if(ibuf->mipmap[0]) + ibuf->userflags |= IB_MIPMAP_INVALID; /* force mipmap recreatiom */ } |