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:
authorAlessio Monti di Sopra <a.monti>2019-11-03 08:34:44 +0300
committerRichard Antalik <richardantalik@gmail.com>2019-11-03 08:52:22 +0300
commitb9c2f8f3c89c3386e50cfcfc95c17ff6366222bb (patch)
tree44d7138b86c0a157b593ee381e767c4564a09449 /source/blender/editors/space_sequencer/sequencer_draw.c
parent7ddbc7b031483f0220bb745ecb83b0a70587cba2 (diff)
UI: Fix preview frame range drawing in sequencer and driver editors
Draw preview range overlay in the video sequencer in the same way as in the other animation editors Add color control in the theme. Prevent overlay to be drawn in the driver editor. Reviewed By: ISS Differential Revision: https://developer.blender.org/D6074
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 1a788237e6e..5b2ea9d4793 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1767,8 +1767,8 @@ static void draw_seq_strips(const bContext *C, Editing *ed, ARegion *ar)
static void seq_draw_sfra_efra(Scene *scene, View2D *v2d)
{
const Editing *ed = BKE_sequencer_editing_get(scene, false);
- const int frame_sta = PSFRA;
- const int frame_end = PEFRA + 1;
+ const int frame_sta = scene->r.sfra;
+ const int frame_end = scene->r.efra + 1;
GPU_blend(true);