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:
authorAntony Riakiotakis <kalast@gmail.com>2015-05-04 13:17:49 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-05-04 13:18:19 +0300
commit711e2f71a80923e0b1d5acc0b6634c0b326238b6 (patch)
tree529fec39d2bc5bb247af79888991ded88310ddb8 /source/blender/editors/space_image
parent23a79c42b5efce2c0d1aa27bd01751380ca9fb41 (diff)
Support displaying metadata for images in sequencer preview windows (not
backdrop)
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_draw.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 04e874bbae1..36419ccd10d 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -848,8 +848,15 @@ void draw_image_main(const bContext *C, ARegion *ar)
else
draw_image_buffer(C, sima, ar, scene, ibuf, 0.0f, 0.0f, zoomx, zoomy);
- if (sima->flag & SI_DRAW_METADATA)
- ED_region_image_metadata_draw(ar, ibuf, zoomx, zoomy);
+ if (sima->flag & SI_DRAW_METADATA) {
+ int x, y;
+ rctf frame;
+
+ BLI_rctf_init(&frame, 0.0f, ibuf->x, 0.0f, ibuf->y);
+ UI_view2d_view_to_region(&ar->v2d, 0.0f, 0.0f, &x, &y);
+
+ ED_region_image_metadata_draw(x, y, ibuf, frame, zoomx, zoomy);
+ }
}
ED_space_image_release_buffer(sima, ibuf, lock);