Commit: 0e3fd70d7ac62c12ed85d3a90266994fac26bad0
Author: Brecht Van Lommel
Date:   Tue Nov 7 02:27:27 2017 +0100
Branches: master
https://developer.blender.org/rB0e3fd70d7ac62c12ed85d3a90266994fac26bad0

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.

===================================================================

M       source/blender/makesrna/intern/rna_image.c

===================================================================

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);
+       }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to