diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-12-17 04:32:24 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-12-17 04:32:24 +0300 |
commit | 8df6589585a19efb7c9515bc40b81a55d43b3c9a (patch) | |
tree | 574fed47b27c69ad49c9ef24cc51832ee0a77765 /source/blender | |
parent | d11b219d40d7c72156fd11c335fde27212997957 (diff) |
VSE: Fix crash when adding image strip
Crash happens when using relative path to image in operator properties
and checking image dimensions by loading image with `IMB_loadiffname()`
Ensure path is absolute.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/sequencer/intern/strip_add.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/sequencer/intern/strip_add.c b/source/blender/sequencer/intern/strip_add.c index 9c9d51e9286..e56dcf888a7 100644 --- a/source/blender/sequencer/intern/strip_add.c +++ b/source/blender/sequencer/intern/strip_add.c @@ -121,6 +121,7 @@ Sequence *BKE_sequencer_add_image_strip(bContext *C, ListBase *seqbasep, SeqLoad char file_path[FILE_MAX]; BLI_join_dirfile(file_path, sizeof(file_path), seq_load->path, seq_load->name); + BLI_path_abs(file_path, BKE_main_blendfile_path(CTX_data_main(C))); ImBuf *ibuf = IMB_loadiffname(file_path, IB_rect, seq->strip->colorspace_settings.name); if (ibuf != NULL) { SEQ_set_scale_to_fit(seq, ibuf->x, ibuf->y, scene->r.xsch, scene->r.ysch, seq_load->fit_method); |