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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-18 13:41:09 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-18 13:42:22 +0300
commit79cfd5134dfee0aec560c2a1b5168156e596c85f (patch)
tree4845e5307d82ca7a690e46d16d8278961542b576 /source/blender/editors/sculpt_paint
parent396558b36fb32e2a8b6d5fc641d434351179afce (diff)
Fix image not being marked as modified on texture paint undo/redo
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_undo.c2
1 files changed, 2 insertions, 0 deletions
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 */
}