Bugfix #7756
authorTon Roosendaal <ton@blender.org>
Mon, 12 Nov 2007 11:45:48 +0000 (11:45 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 12 Nov 2007 11:45:48 +0000 (11:45 +0000)
Sequencer: changing the Scene strip length (Ckey) crashed.
This is very confused code here... ancient allocation issues. :)

source/blender/src/editseq.c

index 737e7e1a4bfeb84b78390605193ec8ad4a8eac04..8f328afc222012199050600eb0e865ab7fa9c3aa 100644 (file)
@@ -2011,6 +2011,10 @@ void change_sequence(void)
 
                        last_seq->len= sce->r.efra - sce->r.sfra + 1;
                        last_seq->sfra= sce->r.sfra;
+                       
+                       /* bad code to change seq->len? update_changed_seq_and_deps() expects the strip->len to be OK */
+                       new_stripdata(last_seq);
+                       
                        update_changed_seq_and_deps(last_seq, 1, 1);
 
                        allqueue(REDRAWSEQ, 0);