diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-01-14 08:23:32 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-01-14 08:57:08 +0300 |
commit | e1c4dc7a64c68e69cd47a98d2c9aae0857186719 (patch) | |
tree | 0b778b4c2fe3fb9b58750de1df341e615b02c0e3 /source | |
parent | fad5232f8af31fb9a0d282a046bd4f4fc0e6daed (diff) |
Fix drawing metadata
ImBuf was freed prior to drawing metadata.
Reviewed by: Brecht
Differential Revision: https://developer.blender.org/D4170
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index ebea2be82a6..e56ad07eeba 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -1432,13 +1432,13 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq if (cache_handle) IMB_display_buffer_release(cache_handle); - if (!scope) - IMB_freeImBuf(ibuf); - if (draw_metadata) { ED_region_image_metadata_draw(0.0, 0.0, ibuf, &v2d->tot, 1.0, 1.0); } + if (!scope) + IMB_freeImBuf(ibuf); + if (draw_backdrop) { GPU_matrix_pop(); return; |