From fa4acbd6be0708d0a145b43a59c862c32b0aa9d9 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 17 Mar 2023 12:04:49 +0100 Subject: [PATCH] Fix #105757: Resizing images is not marking them as changed Resizing an image via the operator did not mark it dirty (`IB_BITMAPDIRTY` is needed to pick this up as being modified, if this is not set, no warning/option is shown on file close). Note that using RNA would already do this correctly (since it uses `BKE_image_scale` -- which already calls `BKE_image_mark_dirty` internally). Pull Request: https://projects.blender.org/blender/blender/pulls/105851 --- source/blender/editors/space_image/image_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 13d3681b10e..31eea8c7558 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -3008,6 +3008,7 @@ static int image_scale_exec(bContext *C, wmOperator *op) ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID; IMB_scaleImBuf(ibuf, size[0], size[1]); + BKE_image_mark_dirty(ima, ibuf); BKE_image_release_ibuf(ima, ibuf, NULL); ED_image_undo_push_end();