[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20032] trunk/blender/source/blender/src/ editseq.c: [#18191] VSE: when moving a project containing a relative path Audio RAM strip, it is still pointing old file
Campbell Barton
ideasman42 at gmail.com
Sat May 2 23:11:48 CEST 2009
Revision: 20032
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20032
Author: campbellbarton
Date: 2009-05-02 23:11:48 +0200 (Sat, 02 May 2009)
Log Message:
-----------
[#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.
Modified Paths:
--------------
trunk/blender/source/blender/src/editseq.c
Modified: trunk/blender/source/blender/src/editseq.c
===================================================================
--- trunk/blender/source/blender/src/editseq.c 2009-05-02 19:46:54 UTC (rev 20031)
+++ trunk/blender/source/blender/src/editseq.c 2009-05-02 21:11:48 UTC (rev 20032)
@@ -1183,6 +1183,10 @@
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");
More information about the Bf-blender-cvs
mailing list