Fix T78999: Crash when adjusting sequencer property

Sequencer was not initialized yet, and RNA update function tried to clean up cache.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8323
This commit is contained in:
Richard Antalik 2020-07-25 02:52:16 +02:00
parent 28b1c70895
commit f2907b06f4
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #78999, Segmentation fault when setting `D.scenes[0].sequence_editor.proxy_storage` with a second scene selected having no sequence editor
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 4 additions and 0 deletions

View File

@ -4301,6 +4301,10 @@ void BKE_sequence_invalidate_movieclip_strips(Main *bmain, MovieClip *clip_targe
void BKE_sequencer_free_imbuf(Scene *scene, ListBase *seqbase, bool for_render)
{
if (scene->ed == NULL) {
return;
}
Sequence *seq;
BKE_sequencer_cache_cleanup(scene);