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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-07 04:27:27 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-07 05:05:42 +0300
commit0e3fd70d7ac62c12ed85d3a90266994fac26bad0 (patch)
tree6f0ef886f4fe7119082cd831f0aa208fc7a7211f /source/blender/makesrna/intern/rna_image.c
parent956ee5e2658f3e823885f97668a75c48df34b765 (diff)
Fix T53129: Cycles missing update when changing image auto refresh.
Previously auto refresh worked, but only if it was already enabled before starting the viewport render.
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index d7991ed6ef3..cb5d731efc5 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -174,6 +174,11 @@ static void rna_ImageUser_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *
ImageUser *iuser = ptr->data;
BKE_image_user_frame_calc(iuser, scene->r.cfra, 0);
+
+ if(ptr->id.data) {
+ /* Update material or texture for render preview. */
+ DAG_id_tag_update(ptr->id.data, 0);
+ }
}