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:
authorJeroen Bakker <jeroen@blender.org>2022-02-14 13:00:30 +0300
committerJeroen Bakker <jeroen@blender.org>2022-02-14 13:00:30 +0300
commit48e2bf3638e1d96d8cbfbc74d29c347ccfcad576 (patch)
treed40cb6b120a2a0718f68199556760c4398461fd2 /source/blender/makesrna/intern
parentefac4db166292229e4e2ab7afa6034d637893bd6 (diff)
parent1236d2aea8d55c7d98409fc76968bad297a53007 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 8adb9267769..e40fafd2069 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -594,7 +594,7 @@ static void rna_render_slots_active_set(PointerRNA *ptr,
int index = BLI_findindex(&image->renderslots, slot);
if (index != -1) {
image->render_slot = index;
- image->gpuflag |= IMA_GPU_REFRESH;
+ BKE_image_partial_update_mark_full_update(image);
}
}
}
@@ -610,7 +610,7 @@ static void rna_render_slots_active_index_set(PointerRNA *ptr, int value)
Image *image = (Image *)ptr->owner_id;
int num_slots = BLI_listbase_count(&image->renderslots);
image->render_slot = value;
- image->gpuflag |= IMA_GPU_REFRESH;
+ BKE_image_partial_update_mark_full_update(image);
CLAMP(image->render_slot, 0, num_slots - 1);
}