From 4ba6dbce767c7e3fe4c91aaca79da6f35d5492c9 Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Tue, 25 Aug 2009 15:30:04 +0000 Subject: Replaced G.sce by Main.name in sound.c. I hoped for it to resolve the bug of loading sounds with relative paths didn't work, but Main.name isn't set before the sounds are loaded, so the bug resists! Someone who is into file loading should please fix this! --- source/blender/blenkernel/intern/packedFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/packedFile.c') diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c index 8c77ed92aa1..3e47c1006e5 100644 --- a/source/blender/blenkernel/intern/packedFile.c +++ b/source/blender/blenkernel/intern/packedFile.c @@ -473,7 +473,7 @@ int unpackSound(ReportList *reports, bSound *sound, int how) freePackedFile(sound->packedfile); sound->packedfile = 0; - sound_load(sound); + sound_load(NULL, sound); ret_value = RET_OK; } -- cgit v1.2.3