split BLO_library_append_named_part into 2 function, one that adds objects into the scene and another that just links/appends.

This commit is contained in:
2011-05-26 20:45:19 +00:00
parent 78d41d061b
commit 06fea1a0ff
4 changed files with 74 additions and 50 deletions

View File

@@ -340,7 +340,7 @@ static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *UNUSED(args))
// printf(" %s\n", item_str);
if(item_str) {
ID *id= BLO_library_append_named_part(NULL, mainl, &(self->blo_handle), item_str, code, self->flag);
ID *id= BLO_library_append_named_part(mainl, &(self->blo_handle), item_str, code);
if(id) {
#ifdef USE_RNA_DATABLOCKS
PointerRNA id_ptr;