- remove bpath iterator and replace all uses with visitor.
- added flag to optionally receive all paths as absolute.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user