Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_undo.c
| Show First 20 Lines • Show All 564 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (UndoImageBuf *, ubuf_iter, &uh->buffers) { | ||||
| changed = true; | changed = true; | ||||
| i += 1; | i += 1; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (changed) { | if (changed) { | ||||
| BKE_image_mark_dirty(image, ibuf); | BKE_image_mark_dirty(image, ibuf); | ||||
| BKE_image_free_gputextures(image); /* force OpenGL reload */ | /* TODO(jbakker): only mark areas that are actually updated to improve performance. */ | ||||
| BKE_image_partial_update_mark_full_update(image); | |||||
| if (ibuf->rect_float) { | if (ibuf->rect_float) { | ||||
| ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */ | ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */ | ||||
| } | } | ||||
| if (ibuf->mipmap[0]) { | if (ibuf->mipmap[0]) { | ||||
| ibuf->userflags |= IB_MIPMAP_INVALID; /* force mip-map recreation. */ | ibuf->userflags |= IB_MIPMAP_INVALID; /* force mip-map recreation. */ | ||||
| } | } | ||||
| ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID; | ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID; | ||||
| ▲ Show 20 Lines • Show All 524 Lines • Show Last 20 Lines | |||||