Fix image not being marked as modified on texture paint undo/redo
This commit is contained in:
parent
396558b36f
commit
79cfd5134d
Notes:
blender-bot
2023-02-14 06:04:14 +01:00
Referenced by issue #54485, Undo doesent dirty packed images (2.7x & 2.8x)
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue