Fix sequencer crash when invalidating strip when there's nothing cached yet
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Aug 2012 09:37:51 +0000 (09:37 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Aug 2012 09:37:51 +0000 (09:37 +0000)
source/blender/blenkernel/intern/seqcache.c

index a4ea5d1fb2634548e723a904d51d10f78ce9b1f0..387ec67eb1cccd50465a945e7b9e37360c15867f 100644 (file)
@@ -180,7 +180,8 @@ static int seqcache_key_check_seq(void *userkey, void *userdata)
 
 void BKE_sequencer_cache_cleanup_sequence(Sequence *seq)
 {
-       IMB_moviecache_cleanup(moviecache, seqcache_key_check_seq, seq);
+       if (moviecache)
+               IMB_moviecache_cleanup(moviecache, seqcache_key_check_seq, seq);
 }
 
 struct ImBuf *BKE_sequencer_cache_get(SeqRenderData context, Sequence *seq, float cfra, seq_stripelem_ibuf_t type)