diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-11-13 16:44:45 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-11-13 16:44:45 +0300 |
commit | 2fbfd11f8db0cc6dbb0afc0a018e951f10f2a42c (patch) | |
tree | 8010d6ed7cd94faadae1b932d8eec0dc054b8fd7 /source/blender/blenkernel/intern/packedFile.c | |
parent | c1dec420b089e43d1fee5ba361847d7653167937 (diff) |
Fix for [#24654] Sound Actuator doesn't find the file when Blender is reopened.
Diffstat (limited to 'source/blender/blenkernel/intern/packedFile.c')
-rw-r--r-- | source/blender/blenkernel/intern/packedFile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c index e8223caed41..7d7f73222fa 100644 --- a/source/blender/blenkernel/intern/packedFile.c +++ b/source/blender/blenkernel/intern/packedFile.c @@ -467,7 +467,7 @@ int unpackVFont(ReportList *reports, VFont *vfont, int how) return (ret_value); } -int unpackSound(ReportList *reports, bSound *sound, int how) +int unpackSound(Main *bmain, ReportList *reports, bSound *sound, int how) { char localname[FILE_MAXDIR + FILE_MAX], fi[FILE_MAX]; char *newname; @@ -486,7 +486,7 @@ int unpackSound(ReportList *reports, bSound *sound, int how) freePackedFile(sound->packedfile); sound->packedfile = 0; - sound_load(NULL, sound); + sound_load(bmain, sound); ret_value = RET_OK; } @@ -536,6 +536,6 @@ void unpackAll(Main *bmain, ReportList *reports, int how) for(sound=bmain->sound.first; sound; sound=sound->id.next) if(sound->packedfile) - unpackSound(reports, sound, how); + unpackSound(bmain, reports, sound, how); } |