VSE: Fixing channel lock when a strip is duplicated from preview

When a strip is duplicated in the preview, it is not being locked.

Unset flag `SEQ_IGNORE_CHANNEL_LOCK` for the duplicated strips.

Pull Request: https://projects.blender.org/blender/blender/pulls/136848
This commit is contained in:
Mukhesh
2025-04-03 04:49:16 +02:00
committed by Richard Antalik
parent 795e63a4c7
commit ae40ee047c

View File

@@ -1663,7 +1663,7 @@ static wmOperatorStatus sequencer_add_duplicate_exec(bContext *C, wmOperator * /
}
strip->flag &= ~(SEQ_LEFTSEL + SEQ_RIGHTSEL + SEQ_LOCK);
strip->flag |= SEQ_IGNORE_CHANNEL_LOCK;
seq::animation_duplicate_backup_to_scene(scene, strip, &animation_backup);
seq::ensure_unique_name(strip, scene);
}
@@ -1682,6 +1682,7 @@ static wmOperatorStatus sequencer_add_duplicate_exec(bContext *C, wmOperator * /
if (seq::transform_test_overlap(scene, ed->seqbasep, strip)) {
seq::transform_seqbase_shuffle(ed->seqbasep, strip, scene);
}
strip->flag &= ~SEQ_IGNORE_CHANNEL_LOCK;
}
}