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:
authorJulian Eisel <julian_eisel@web.de>2015-03-26 00:15:56 +0300
committerJulian Eisel <julian_eisel@web.de>2015-03-26 00:15:56 +0300
commit92f305a490802812091da4640df552d77f168844 (patch)
treeb32499cf1deed3723425571e1d37d91c0021bff8 /source/blender/editors/space_sequencer/sequencer_draw.c
parent581afa9da37e0adaea756c165af11b467e9b8852 (diff)
A more forward thinking version of previous commit
Basically same as 581afa9da37, but I guess we can assume that scopes added in future to the image preview may also want to use the viewrect from the original ibuf.
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, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index c668887e564..ec4ae5a3a62 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1079,7 +1079,10 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
/* future files may have new scopes we don't catch above */
if (scope) {
scopes->reference_ibuf = ibuf;
- if (!scopes->zebra_ibuf) { /* zebra uses viewrect from orig ibuf */
+ if (sseq->mainb == SEQ_DRAW_IMG_IMBUF) {
+ /* scopes drawn in image preview use viewrect from orig ibuf - currently that's only zebra */
+ }
+ else {
viewrect[0] = scope->x;
viewrect[1] = scope->y;
}