fix for crash with opengl sequencer strips that dont have a camera
authorCampbell Barton <ideasman42@gmail.com>
Thu, 17 Jun 2010 14:22:13 +0000 (14:22 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 17 Jun 2010 14:22:13 +0000 (14:22 +0000)
source/blender/blenkernel/intern/sequencer.c

index 3ff7370..d1ab63c 100644 (file)
@@ -2194,7 +2194,7 @@ static void do_build_seq_ibuf(Scene *scene, Sequence * seq, TStripElem *se, int
                        seq->scene->markers.first= seq->scene->markers.last= NULL;
 #endif
 
-                       if(sequencer_view3d_cb && doseq_gl && (seq->scene == scene || have_seq==0)) {
+                       if(sequencer_view3d_cb && doseq_gl && (seq->scene == scene || have_seq==0) && seq->scene->camera) {
                                /* opengl offscreen render */
                                scene_update_for_newframe(seq->scene, seq->scene->lay);
                                se->ibuf= sequencer_view3d_cb(seq->scene, seqrectx, seqrecty, scene->r.seq_prev_type);