[Bf-blender-cvs] [d7e914270f7] master: Fix (unreported): Pasted strip is not active

Richard Antalik noreply at git.blender.org
Sat Jan 28 00:10:26 CET 2023


Commit: d7e914270f75b2be68f065aa6f27bb9d60e48511
Author: Richard Antalik
Date:   Sat Jan 28 00:02:51 2023 +0100
Branches: master
https://developer.blender.org/rBd7e914270f75b2be68f065aa6f27bb9d60e48511

Fix (unreported): Pasted strip is not active

Broken by renaming strip before comparing name to reference.

===================================================================

M	source/blender/editors/space_sequencer/sequencer_edit.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index a9e31de2096..96f8d2fe269 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -2570,17 +2570,16 @@ static int sequencer_paste_exec(bContext *C, wmOperator *op)
    * in the new list. */
   BLI_movelisttolist(ed->seqbasep, &nseqbase);
 
-  /* Make sure, that pasted strips have unique names. This has to be done immediately after adding
-   * strips to seqbase, for lookup cache to work correctly. */
-  for (iseq = iseq_first; iseq; iseq = iseq->next) {
-    SEQ_ensure_unique_name(iseq, scene);
-  }
-
   for (iseq = iseq_first; iseq; iseq = iseq->next) {
     if (SEQ_clipboard_pasted_seq_was_active(iseq)) {
       SEQ_select_active_set(scene, iseq);
     }
+    /* Make sure, that pasted strips have unique names. This has to be done after
+     * adding strips to seqbase, for lookup cache to work correctly. */
+    SEQ_ensure_unique_name(iseq, scene);
+  }
 
+  for (iseq = iseq_first; iseq; iseq = iseq->next) {
     /* Translate after name has been changed, otherwise this will affect animdata of original
      * strip. */
     SEQ_transform_translate_sequence(scene, iseq, ofs);



More information about the Bf-blender-cvs mailing list