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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-07-15 11:58:15 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-07-15 11:58:15 +0400
commitc0b28134cb2a19147f2aaa8e22b16487f0183506 (patch)
treebe305c92fc9e9e9b62912025c45606523208fb52 /source/blender
parentdc9beee3e23ff03f016c43d511719aa798a02f68 (diff)
Fix #36124: VSE - Input Color doesn't invalidate cache properly for movies
Animation structure holds some buffers inside, so for proper cache invalidation we need to re-open the animation.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 68fac399c51..027b1d7fa03 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -3111,8 +3111,18 @@ static void sequence_invalidate_cache(Scene *scene, Sequence *seq, int invalidat
Editing *ed = scene->ed;
/* invalidate cache for current sequence */
- if (invalidate_self)
+ if (invalidate_self) {
+ if (seq->anim) {
+ /* Animation structure holds some buffers inside,
+ * so for proper cache invalidation we need to
+ * re-open the animation.
+ */
+ IMB_free_anim(seq->anim);
+ seq->anim = NULL;
+ }
+
BKE_sequencer_cache_cleanup_sequence(seq);
+ }
/* if invalidation is invoked from sequence free routine, effectdata would be NULL here */
if (seq->effectdata && seq->type == SEQ_TYPE_SPEED)