From 79cfd5134dfee0aec560c2a1b5168156e596c85f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 18 May 2019 12:41:09 +0200 Subject: [PATCH] Fix image not being marked as modified on texture paint undo/redo --- source/blender/editors/sculpt_paint/paint_image_undo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/sculpt_paint/paint_image_undo.c b/source/blender/editors/sculpt_paint/paint_image_undo.c index b80144ac4af..bb73d424152 100644 --- a/source/blender/editors/sculpt_paint/paint_image_undo.c +++ b/source/blender/editors/sculpt_paint/paint_image_undo.c @@ -349,7 +349,9 @@ static void image_undo_restore_list(ListBase *lb, struct UndoIDPtrMap *id_map) undo_copy_tile(tile, tmpibuf, ibuf, RESTORE_COPY); + BKE_image_mark_dirty(ima, ibuf); GPU_free_image(ima); /* force OpenGL reload */ + if (ibuf->rect_float) { ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */ }