Removing gaps will now also move the scene markers, unless markers are
locked
This commit is contained in:
parent
f525483d83
commit
1a44237d82
|
@ -900,6 +900,7 @@ static bool sequence_offset_after_frame(Scene *scene, const int delta, const int
|
|||
Sequence *seq;
|
||||
Editing *ed = BKE_sequencer_editing_get(scene, false);
|
||||
bool done = false;
|
||||
TimeMarker *marker;
|
||||
|
||||
/* all strips >= cfra are shifted */
|
||||
|
||||
|
@ -913,6 +914,14 @@ static bool sequence_offset_after_frame(Scene *scene, const int delta, const int
|
|||
}
|
||||
}
|
||||
|
||||
if (!scene->toolsettings->lock_markers) {
|
||||
for (marker = scene->markers.first; marker; marker = marker->next) {
|
||||
if (marker->frame >= cfra) {
|
||||
marker->frame += delta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return done;
|
||||
}
|
||||
|
||||
|
@ -1035,7 +1044,7 @@ static int sequencer_gap_remove_exec(bContext *C, wmOperator *op)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for ( ; cfra < efra; cfra++) {
|
||||
/* first == 0 means there's still no strip to remove a gap for */
|
||||
if (first == false) {
|
||||
|
|
Loading…
Reference in New Issue