Fix for [#26949] problems opening 2.49 files with audio (relative path problems?)
authorJoerg Mueller <nexyon@gmail.com>
Mon, 18 Apr 2011 10:04:28 +0000 (10:04 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Mon, 18 Apr 2011 10:04:28 +0000 (10:04 +0000)
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

index 7ad157f89e817bacc9b1f1b53c63f26f5d9ed573..4ff65aeb213be6b31fb9a7e6bc98e7d17f5f889b 100644 (file)
@@ -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);
                                        {
                                                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
                                                seq->sound = sound_new_file(main, str);
                                        }
                                        /* don't know, if anybody used that