diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-14 21:02:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-14 21:02:41 +0300 |
commit | 9ac68ad4abf2f4bb4fc92c292170a7cf6c29b319 (patch) | |
tree | 128b666894274882e649418e8af2a81d25ce133f /source/blender/editors/sculpt_paint | |
parent | 73ea636abb6f9d4d25155f630ac606973e9bf335 (diff) |
Bugfix #22040
Old bug report:
Image Editor, Painting: crash when texture was visible in
Material or Texture preview. Was caused by paint code
freeing mipmaps. Now replaced with a mipmap tag (to be done
again), and a new mipmap function that doesn't re-allocate.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 84816cebc46..46bcd1f1c0d 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -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)) { |