Fix #31929: VSE crash with relative paths and rebuilding proxies

This commit is contained in:
2012-06-28 07:58:34 +00:00
parent a837434033
commit 20e854bb16

View File

@@ -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);
}
}