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>2019-03-01 04:12:40 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-01 04:12:40 +0300
commit795effcbc815ae8c54bf59d31f3315a46e576c86 (patch)
tree247c34f5e705b80e28d0c9b98f445e3d161ce794 /source/blender
parente5194835de457d69def325767c912035bc994f5c (diff)
Fix T61825: animated images not working immediately when enabling auto refresh.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_image.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 61c671666c2..231d4d6dbc8 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -161,6 +161,11 @@ static void rna_ImageUser_update(Main *bmain, Scene *scene, PointerRNA *ptr)
}
}
+static void rna_ImageUser_relations_update(Main *bmain, Scene *scene, PointerRNA *ptr)
+{
+ rna_ImageUser_update(bmain, scene, ptr);
+ DEG_relations_tag_update(bmain);
+}
static char *rna_ImageUser_path(PointerRNA *ptr)
{
@@ -517,7 +522,7 @@ static void rna_def_imageuser(BlenderRNA *brna)
prop = RNA_def_property(srna, "use_auto_refresh", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_ANIM_ALWAYS);
RNA_def_property_ui_text(prop, "Auto Refresh", "Always refresh image on frame changes");
- RNA_def_property_update(prop, 0, "rna_ImageUser_update");
+ RNA_def_property_update(prop, 0, "rna_ImageUser_relations_update");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
prop = RNA_def_property(srna, "frame_current", PROP_INT, PROP_TIME);