From 2cce65de9695943c5189b74d1c3a480d2b72889f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 28 Jul 2019 13:24:18 +0200 Subject: Fix T66872: Changing clip color space does not update background images Such reload can no longer happen directly and is to be done via dependency graph. Eventually, the movie cache will become shared across all copies of the clip, but even then we still need to have dependency graph mechanism because we need to update FFmpeg animation handle (which can not be shared across the copies). --- source/blender/makesdna/DNA_ID.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesdna/DNA_ID.h') diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index dc4164169f9..ef9069acb78 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -620,6 +620,11 @@ typedef enum IDRecalcFlag { * Basically, the same what changing frame in a timeline will do. */ ID_RECALC_TIME = (1 << 22), + /* Input has changed and datablock is to be reload from disk. + * Applies to movie clips to inform that copy-on-written version is to be refreshed for the new + * input file or for color space changes. */ + ID_RECALC_SOURCE = (1 << 23), + /*************************************************************************** * Pseudonyms, to have more semantic meaning in the actual code without * using too much low-level and implementation specific tags. */ -- cgit v1.2.3