mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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.
This commit is contained in:
parent
dc9beee3e2
commit
c0b28134cb
1 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue