Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-10 07:53:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-10 07:53:18 +0300
commit51843289910d034615734888d8b3894021f96384 (patch)
treed76e17f0f1f033544afc78bb9c39ae810d15f962 /source/blender/editors/space_sequencer
parent94a5b7a2e2e26204e5d2167c36af5b761e0fdc57 (diff)
Cleanup: replace term 'terrible' from sequence slip
Joke from branch name, makes comments unclear.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 0408ab75d53..07523e62871 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -1526,7 +1526,7 @@ static int sequencer_slip_invoke(bContext *C, wmOperator *op, const wmEvent *eve
static bool sequencer_slip_recursively(Scene *scene, SlipData *data, int offset)
{
- /* only data types supported for now */
+ /* Only data types supported for now. */
if (offset != 0) {
Editing *ed = BKE_sequencer_editing_get(scene, false);
int i;
@@ -1535,16 +1535,16 @@ static bool sequencer_slip_recursively(Scene *scene, SlipData *data, int offset)
for (i = data->num_seq - 1; i >= 0; i--) {
Sequence *seq = data->seq_array[i];
int endframe;
- /* we have the offset, do the terrible math */
+ /* We have the offset, apply the values to the sequence strips. */
/* first, do the offset */
seq->start = data->ts[i].start + offset;
if (data->trim[i]) {
- /* find the endframe */
+ /* Find the end-frame. */
endframe = seq->start + seq->len;
- /* now compute the terrible offsets */
+ /* Now compute the sequence offsets. */
if (endframe > seq->enddisp) {
seq->endstill = 0;
seq->endofs = endframe - seq->enddisp;
@@ -1564,12 +1564,12 @@ static bool sequencer_slip_recursively(Scene *scene, SlipData *data, int offset)
}
}
else {
- /* if no real trim, don't change the data, rather transform the strips themselves */
+ /* If no real trim, don't change the data, rather transform the strips themselves. */
seq->startdisp = data->ts[i].startdisp + offset;
seq->enddisp = data->ts[i].enddisp + offset;
}
- /* effects are only added if we they are in a meta-strip.
+ /* Effects are only added if we they are in a meta-strip.
* In this case, dependent strips will just be transformed and
* we can skip calculating for effects.
* This way we can avoid an extra loop just for effects*/