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-06-28 11:58:34 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-28 11:58:34 +0400
commit20e854bb16b0a1063ae413288fe46a232640cfbb (patch)
treec8adbcf2d84cd42d06862deed4fcbdb4807c45e2 /source/blender/blenkernel/intern/sequencer.c
parenta837434033a266f731993c346982b2aeac55741d (diff)
Fix #31929: VSE crash with relative paths and rebuilding proxies
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index a8aa17d3480..78ccdc425e5 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -1220,7 +1220,11 @@ static void seq_open_anim_file(Sequence *seq)
}
if (seq->flag & SEQ_USE_PROXY_CUSTOM_DIR) {
- IMB_anim_set_index_dir(seq->anim, seq->strip->proxy->dir);
+ char dir[FILE_MAX];
+ BLI_strncpy(dir, seq->strip->proxy->dir, sizeof(dir));
+ BLI_path_abs(dir, G.main->name);
+
+ IMB_anim_set_index_dir(seq->anim, dir);
}
}