[Bf-blender-cvs] [79cfd5134df] master: Fix image not being marked as modified on texture paint undo/redo
Brecht Van Lommel
noreply at git.blender.org
Sat May 18 12:44:07 CEST 2019
Commit: 79cfd5134dfee0aec560c2a1b5168156e596c85f
Author: Brecht Van Lommel
Date: Sat May 18 12:41:09 2019 +0200
Branches: master
https://developer.blender.org/rB79cfd5134dfee0aec560c2a1b5168156e596c85f
Fix image not being marked as modified on texture paint undo/redo
===================================================================
M source/blender/editors/sculpt_paint/paint_image_undo.c
===================================================================
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 */
}
More information about the Bf-blender-cvs
mailing list