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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-05 18:11:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-05 18:11:22 +0400
commitc1dc3753790038d94dd088923f0bb7f97e5ed6f9 (patch)
tree5b8d1655f2f0eeda522ff176c486ec155b3cc286 /source/blender/editors/space_sequencer
parent9ca25136a1b0a3dba359f9d96e6335b207872b78 (diff)
Sequencer: show color sample line in image display mode only
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_view.c b/source/blender/editors/space_sequencer/sequencer_view.c
index fa39003bd55..d500bef4f02 100644
--- a/source/blender/editors/space_sequencer/sequencer_view.c
+++ b/source/blender/editors/space_sequencer/sequencer_view.c
@@ -162,8 +162,12 @@ static void sample_exit(bContext *C, wmOperator *op)
static int sample_invoke(bContext *C, wmOperator *op, wmEvent *event)
{
ARegion *ar = CTX_wm_region(C);
+ SpaceSeq *sseq = CTX_wm_space_seq(C);
ImageSampleInfo *info;
+ if (sseq->mainb != SEQ_DRAW_IMG_IMBUF)
+ return OPERATOR_CANCELLED;
+
info = MEM_callocN(sizeof(ImageSampleInfo), "ImageSampleInfo");
info->art = ar->type;
info->draw_handle = ED_region_draw_cb_activate(ar->type, sample_draw, info, REGION_DRAW_POST_PIXEL);