Changed frame numbering to only alter hashes if they are in the filename (not the...
[blender.git] / source / blender / blenkernel / intern / sound.c
index 3b14cb8adace105bc477310c3966b73298a6c054..2c5b49246fba523e0998c956b2ac8673f95e186f 100644 (file)
@@ -109,13 +109,13 @@ PackedFile* sound_find_packedfile(bSound *sound)
        
        // convert sound->name to abolute filename
        strcpy(soundname, sound->name);
-       BLI_convertstringcode(soundname, G.sce, G.scene->r.cfra);
+       BLI_convertstringcode(soundname, G.sce);
        
        search = G.main->sound.first;
        while (search) {
                if (search->sample && search->sample->packedfile) {
                        strcpy(searchname, search->sample->name);
-                       BLI_convertstringcode(searchname, G.sce, G.scene->r.cfra);
+                       BLI_convertstringcode(searchname, G.sce);
                        
                        if (BLI_streq(searchname, soundname)) {
                                pf = search->sample->packedfile;
@@ -125,7 +125,7 @@ PackedFile* sound_find_packedfile(bSound *sound)
                
                if (search->newpackedfile) {
                        strcpy(searchname, search->name);
-                       BLI_convertstringcode(searchname, G.sce, G.scene->r.cfra);
+                       BLI_convertstringcode(searchname, G.sce);
                        if (BLI_streq(searchname, soundname)) {
                                pf = search->newpackedfile;
                                break;