- BKE_idcode_iter_step() - function to step over all ID codes.

- BLO_blendhandle_get_datablock_names() now takes an arg for the total items in the list, saves the caller counting.
This commit is contained in:
Campbell Barton
2011-03-12 14:38:00 +00:00
parent c678bd2d7d
commit a416949382
6 changed files with 27 additions and 9 deletions

View File

@@ -984,8 +984,9 @@ bool KX_BlenderSceneConverter::LinkBlendFile(BlendHandle *bpy_openlib, const cha
/* here appending/linking starts */
main_tmp = BLO_library_append_begin(C, &bpy_openlib, (char *)path);
names = BLO_blendhandle_get_datablock_names( bpy_openlib, idcode);
int totnames_dummy;
names = BLO_blendhandle_get_datablock_names( bpy_openlib, idcode, &totnames_dummy);
int i=0;
LinkNode *n= names;