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:
authorCampbell Barton <ideasman42@gmail.com>2020-02-17 04:33:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-17 04:33:12 +0300
commitd6977b5387919e5053527e8918002875dae5ad83 (patch)
treeb5aac55096c74439221a0dee53e7f6c59a322668
parent819af2094b21a78d57c7480a649f97502c09ec1f (diff)
Fix T73898: UDIM crash changing form tiled to single
-rw-r--r--source/blender/blenkernel/intern/image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index ebe90072f63..7868b72e9cf 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -3364,7 +3364,9 @@ void BKE_image_signal(Main *bmain, Image *ima, ImageUser *iuser, int signal)
if (ima->source != IMA_SRC_TILED) {
/* Free all but the first tile. */
ImageTile *base_tile = BKE_image_get_tile(ima, 0);
- for (ImageTile *tile = base_tile->next; tile; tile = tile->next) {
+ BLI_assert(base_tile == ima->tiles.first);
+ for (ImageTile *tile = base_tile->next, *tile_next; tile; tile = tile_next) {
+ tile_next = tile->next;
image_free_tile(ima, tile);
MEM_freeN(tile);
}