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

Since animation is now handled by the dependency graph.
This commit is contained in:
Brecht Van Lommel 2019-02-20 13:52:10 +01:00
parent c985c60bdc
commit cfbcd7f0da
1 changed files with 2 additions and 0 deletions

View File

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