Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-05-09 17:13:16 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-05-09 17:13:16 +0400
commit18e9d9c3e2a489b200b1344acd09947f3c772715 (patch)
tree12b842cc3576aeedf402bea605cefa71b7b007e8 /source/blender/editors/sculpt_paint/paint_image.c
parent88a13d73958c050bde4364b115faddfe26b0d47c (diff)
Recreate mipmaps after undo in image editor
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c2
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 */
}