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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-03 01:11:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-03 01:11:48 +0400
commit6b0f7c741ec11f5ac63cde6af85efac992787ab4 (patch)
tree994949fb61e53427f88fc0eaefcb521bd0dde723 /source
parent490dad89d555458b0fa1f5309b2912115ab94be1 (diff)
[#18191] VSE: when moving a project containing a relative path Audio RAM strip, it is still pointing old file
Its a bit silly its not using the name from the file selector alredy (which has been made relative), but this fixes the bug.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editseq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c
index e2211e56fca..5dcfae30960 100644
--- a/source/blender/src/editseq.c
+++ b/source/blender/src/editseq.c
@@ -1183,6 +1183,10 @@ static Sequence *sfile_to_ramsnd_sequence(SpaceFile *sfile,
strncpy(str, sfile->dir, FILE_MAXDIR-1);
strncat(str, sfile->file, FILE_MAXFILE-1);
+ if(sfile->flag & FILE_STRINGCODE) {
+ BLI_makestringcode(G.sce, str);
+ }
+
sound= sound_new_sound(str);
if (!sound || sound->sample->type == SAMPLE_INVALID) {
error("Unsupported audio format");