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 :-)
This commit is contained in:
2011-04-18 10:04:28 +00:00
parent 0814cdf54e
commit fae253a428

View 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);
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