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.
This commit is contained in:
Brecht Van Lommel 2017-11-07 02:27:27 +01:00 committed by Bastien Montagne
parent 6bd1189e5c
commit a6e5558194
1 changed files with 5 additions and 0 deletions

View File

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