From fae253a428e37c1e2c2c8ad30fdf01914cec4dda Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Mon, 18 Apr 2011 10:04:28 +0000 Subject: Fix for [#26949] problems opening 2.49 files with audio (relative path problems?) When I wrote that code main.name wasn't set correctly and I had to use G.main.name; now it seems to be the other way round :-) --- source/blender/blenloader/intern/readfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 7ad157f89e8..4ff65aeb213 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -9974,7 +9974,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) { char str[FILE_MAX]; BLI_join_dirfile(str, sizeof(str), seq->strip->dir, seq->strip->stripdata->name); - BLI_path_abs(str, G.main->name); + BLI_path_abs(str, main->name); seq->sound = sound_new_file(main, str); } /* don't know, if anybody used that -- cgit v1.2.3