[Bf-blender-cvs] [cfbcd7f0da1] master: Fix missing dependency upgrade when changing image to/from sequence.

Brecht Van Lommel noreply at git.blender.org
Wed Feb 20 14:05:42 CET 2019


Commit: cfbcd7f0da1f415c224ca4827e213f2d2c7ba624
Author: Brecht Van Lommel
Date:   Wed Feb 20 13:52:10 2019 +0100
Branches: master
https://developer.blender.org/rBcfbcd7f0da1f415c224ca4827e213f2d2c7ba624

Fix missing dependency upgrade when changing image to/from sequence.

Since animation is now handled by the dependency graph.

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

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 e42c154d865..61c671666c2 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -29,6 +29,7 @@
 #include "BKE_image.h"
 
 #include "DEG_depsgraph.h"
+#include "DEG_depsgraph_build.h"
 
 #include "RNA_access.h"
 #include "RNA_define.h"
@@ -94,6 +95,7 @@ static void rna_Image_source_set(PointerRNA *ptr, int value)
 		BKE_image_signal(G_MAIN, ima, NULL, IMA_SIGNAL_SRC_CHANGE);
 		DEG_id_tag_update(&ima->id, 0);
 		DEG_id_tag_update(&ima->id, ID_RECALC_EDITORS);
+		DEG_relations_tag_update(G_MAIN);
 	}
 }



More information about the Bf-blender-cvs mailing list