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>2017-10-23 14:27:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-23 14:29:49 +0300
commitcc96cdd9d49c6029e2abc62d81556e2f22480438 (patch)
tree78c3a4b9c526e15c93a38e46c13dded79e85afe5 /source/blender/editors/space_sequencer/sequencer_draw.c
parent1aa5b63661a182957788cc8cbe6fa922ca376a6e (diff)
VSE: draw grid lines at every second
Was hard-coded to 25 frames. D2893 by @jooert
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 97961501c6d..160aa157189 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1630,9 +1630,8 @@ void draw_timeline_seq(const bContext *C, ARegion *ar)
/* draw backdrop */
draw_seq_backdrop(v2d);
- /* regular grid-pattern over the rest of the view (i.e. 25-frame grid lines) */
- // NOTE: the gridlines are currently spaced every 25 frames, which is only fine for 25 fps, but maybe not for 30...
- UI_view2d_constant_grid_draw(v2d);
+ /* regular grid-pattern over the rest of the view (i.e. 1-second grid lines) */
+ UI_view2d_constant_grid_draw(v2d, FPS);
/* Only draw backdrop in pure sequence view. */
if (sseq->view == SEQ_VIEW_SEQUENCE && sseq->draw_flag & SEQ_DRAW_BACKDROP) {