diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-20 13:38:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-20 13:38:01 +0300 |
commit | 9b89abaa8b3689383a8c557981a482d9b1156165 (patch) | |
tree | 236fb56fe4db1a07c2112b49d1edca9fa64611d2 /source/blender/src | |
parent | 5925fe36e0a176a73e65950f7ed5eef510c12f02 (diff) |
BLI_makestringcode dosnt need the first value to be a copy of G.sce since its a "const char"
Removed own script release/scripts/image_find_paths.py since last commit replaced its functionality.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/editseq.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c index 75ac58285a2..bc453dd5a2e 100644 --- a/source/blender/src/editseq.c +++ b/source/blender/src/editseq.c @@ -955,7 +955,7 @@ static Sequence *sfile_to_sequence(SpaceFile *sfile, int cfra, int machine, int Strip *strip; StripElem *se; int totsel, a; - char name[160], rel[160]; + char name[160]; /* are there selected files? */ totsel= 0; @@ -987,8 +987,7 @@ static Sequence *sfile_to_sequence(SpaceFile *sfile, int cfra, int machine, int if(sfile->flag & FILE_STRINGCODE) { strcpy(name, sfile->dir); - strcpy(rel, G.sce); - BLI_makestringcode(rel, name); + BLI_makestringcode(G.sce, name); } else { strcpy(name, sfile->dir); } @@ -1028,7 +1027,7 @@ static int sfile_to_mv_sequence_load(SpaceFile *sfile, int cfra, Strip *strip; StripElem *se; int totframe; - char name[160], rel[160]; + char name[160]; char str[FILE_MAXDIR+FILE_MAXFILE]; totframe= 0; @@ -1060,8 +1059,7 @@ static int sfile_to_mv_sequence_load(SpaceFile *sfile, int cfra, if(sfile->flag & FILE_STRINGCODE) { strcpy(name, sfile->dir); - strcpy(rel, G.sce); - BLI_makestringcode(rel, name); + BLI_makestringcode(G.sce, name); } else { strcpy(name, sfile->dir); } @@ -1123,7 +1121,7 @@ static Sequence *sfile_to_ramsnd_sequence(SpaceFile *sfile, Strip *strip; StripElem *se; double totframe; - char name[160], rel[160]; + char name[160]; char str[256]; totframe= 0.0; @@ -1157,8 +1155,7 @@ static Sequence *sfile_to_ramsnd_sequence(SpaceFile *sfile, if(sfile->flag & FILE_STRINGCODE) { strcpy(name, sfile->dir); - strcpy(rel, G.sce); - BLI_makestringcode(rel, name); + BLI_makestringcode(G.sce, name); } else { strcpy(name, sfile->dir); } @@ -1187,7 +1184,7 @@ static int sfile_to_hdsnd_sequence_load(SpaceFile *sfile, int cfra, Strip *strip; StripElem *se; int totframe; - char name[160], rel[160]; + char name[160]; char str[FILE_MAXDIR+FILE_MAXFILE]; totframe= 0; @@ -1218,8 +1215,7 @@ static int sfile_to_hdsnd_sequence_load(SpaceFile *sfile, int cfra, if(sfile->flag & FILE_STRINGCODE) { strcpy(name, sfile->dir); - strcpy(rel, G.sce); - BLI_makestringcode(rel, name); + BLI_makestringcode(G.sce, name); } else { strcpy(name, sfile->dir); } |