[Bf-committers] Fix for bug:1013, for review
Kenneth Styrberg
bf-committers@blender.org
Sun, 29 Feb 2004 00:33:54 +0100
Hi I found a solution for bug:1013.
=20
in file: filesel.c
=20
line: 2232
=20
static void do_library_append(SpaceFile *sfile)
{
char dir[FILE_MAXDIR], group[32];
=20
if ( is_a_library(sfile, dir, group)=3D=3D0 ) {
error("Not a library");
} else if (!sfile->libfiledata) {
error("Library not loaded");
} else if (group[0]=3D=3D0) {
error("Nothing indicated");
}
else if (BLI_streq(G.main->name, dir))
{
-> /* Fix for appending data from current file */
-> strcpy(G.lib, sfile->dir);
-> /* End of fix! */
=20
error("Cannot use current file as library");
}
=20
This assures that filepath doesn't revert back to last successful append =
path, so that the check for appending from current file fails correctly.
=20
regards
=20
styken