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:
authorRichard Antalik <richardantalik@gmail.com>2020-11-06 16:10:59 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-11-06 17:13:53 +0300
commit1e7d29b0127f17df3ccd9aba72cf3b27ac9ba5b4 (patch)
tree40ecae1fc162fe936780269d4445d439f37c09af /source/blender/editors/space_sequencer/sequencer_select.c
parente91d2ee777466af4f2323daff59aaa8a1ceeec91 (diff)
Cleanup: rename time related variables
Variables renaned: - cfra -> timeline_frame - nr -> frame index - cfra_over -> overlap_frame Function seq_give_stripelem_index was renamed to seq_give_frame_index.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_select.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index f7c8c35d563..a6b2d7feae3 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -975,18 +975,18 @@ static int sequencer_select_side_of_frame_exec(bContext *C, wmOperator *op)
if (extend == false) {
ED_sequencer_deselect_all(scene);
}
- const int cfra = CFRA;
+ const int timeline_frame = CFRA;
SEQ_CURRENT_BEGIN (ed, seq) {
bool test = false;
switch (side) {
case -1:
- test = (cfra >= seq->enddisp);
+ test = (timeline_frame >= seq->enddisp);
break;
case 1:
- test = (cfra <= seq->startdisp);
+ test = (timeline_frame <= seq->startdisp);
break;
case 0:
- test = (cfra <= seq->enddisp) && (cfra >= seq->startdisp);
+ test = (timeline_frame <= seq->enddisp) && (timeline_frame >= seq->startdisp);
break;
}