[Bf-blender-cvs] [51843289910] master: Cleanup: replace term 'terrible' from sequence slip

Campbell Barton noreply at git.blender.org
Tue Mar 10 06:10:22 CET 2020


Commit: 51843289910d034615734888d8b3894021f96384
Author: Campbell Barton
Date:   Tue Mar 10 15:53:18 2020 +1100
Branches: master
https://developer.blender.org/rB51843289910d034615734888d8b3894021f96384

Cleanup: replace term 'terrible' from sequence slip

Joke from branch name, makes comments unclear.

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

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 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*/



More information about the Bf-blender-cvs mailing list