- remove bpath iterator and replace all uses with visitor.

- added flag to optionally receive all paths as absolute.
This commit is contained in:
2011-10-27 01:25:07 +00:00
parent 4772b72951
commit cd852ce1a1
7 changed files with 212 additions and 869 deletions

View File

@@ -1253,7 +1253,7 @@ int new_id(ListBase *lb, ID *id, const char *tname)
void id_clear_lib_data(Main *bmain, ID *id)
{
char *user_data[2]= {bmain->name, id->lib->filepath};
bpath_traverse_id(id, bpath_relocate_visitor, user_data);
bpath_traverse_id(bmain, id, bpath_relocate_visitor, 0, user_data);
id->lib= NULL;
id->flag= LIB_LOCAL;
new_id(which_libbase(bmain, GS(id->name)), id, NULL);