diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-04-22 09:16:52 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-04-22 09:16:52 +0300 |
commit | a43d644decb27a0cf00da92afee71439f6d60d53 (patch) | |
tree | bc0567569eae9b9017697adfd6c114bde48c0d90 /source/blender | |
parent | 6944521d7e3711e6f055e12427aec9d3618979ec (diff) |
VSE: Fix movies are reloaded after invalidation
When cache is strip is invalidated, movie file was reloaded even if it
isn't necessary. This caused significant performance issues when strip
is being dragged under playhead.
This was caused by calling `SEQ_relations_sequence_free_anim()` and it
was introduced as fix for T36124.
When it is necessary to reload file because another API holds reference
to ImBuf, do this explicitly besides cache invalidation.
In `rna_ColorManagedColorspaceSettings_reload_update()` this was already
done, so no change is needed there.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D11024
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/sequencer/intern/strip_relations.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/strip_relations.c b/source/blender/sequencer/intern/strip_relations.c index 1a2ff08bd08..1215cb78b56 100644 --- a/source/blender/sequencer/intern/strip_relations.c +++ b/source/blender/sequencer/intern/strip_relations.c @@ -114,7 +114,6 @@ static void sequence_invalidate_cache(Scene *scene, Editing *ed = scene->ed; if (invalidate_self) { - SEQ_relations_sequence_free_anim(seq); seq_cache_cleanup_sequence(scene, seq, seq, invalidate_types, false); } |