Fix T65814: Copy pasting audio strip from video crash Blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 14 Jun 2019 20:47:34 +0000 (22:47 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 14 Jun 2019 20:47:34 +0000 (22:47 +0200)
source/blender/editors/space_sequencer/sequencer_edit.c

index 5510b98..c3e683b 100644 (file)
@@ -3439,10 +3439,6 @@ static int sequencer_paste_exec(bContext *C, wmOperator *UNUSED(op))
     }
   }
 
-  for (iseq = nseqbase.first; iseq; iseq = iseq->next) {
-    BKE_sequence_sound_init(scene, iseq);
-  }
-
   iseq_first = nseqbase.first;
 
   BLI_movelisttolist(ed->seqbasep, &nseqbase);
@@ -3459,6 +3455,7 @@ static int sequencer_paste_exec(bContext *C, wmOperator *UNUSED(op))
     }
   }
 
+  DEG_id_tag_update(&scene->id, ID_RECALC_SEQUENCER_STRIPS);
   WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene);
 
   return OPERATOR_FINISHED;