Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_library_load.c
| Show First 20 Lines • Show All 397 Lines • ▼ Show 20 Lines | if (err == -1) { | ||||
| /* exception raised above, XXX, this leaks some memory */ | /* exception raised above, XXX, this leaks some memory */ | ||||
| BLO_blendhandle_close(self->blo_handle); | BLO_blendhandle_close(self->blo_handle); | ||||
| self->blo_handle = NULL; | self->blo_handle = NULL; | ||||
| BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, false); | BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, false); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| else { | else { | ||||
| Library *lib = mainl->curlib; /* newly added lib, assign before append end */ | Library *lib = mainl->curlib; /* newly added lib, assign before append end */ | ||||
| BLO_library_link_end(mainl, &(self->blo_handle), self->flag, NULL, NULL); | BLO_library_link_end(mainl, &(self->blo_handle), self->flag, NULL, NULL, NULL); | ||||
| BLO_blendhandle_close(self->blo_handle); | BLO_blendhandle_close(self->blo_handle); | ||||
| self->blo_handle = NULL; | self->blo_handle = NULL; | ||||
| GHash *old_to_new_ids = BLI_ghash_ptr_new(__func__); | GHash *old_to_new_ids = BLI_ghash_ptr_new(__func__); | ||||
| /* copied from wm_operator.c */ | /* copied from wm_operator.c */ | ||||
| { | { | ||||
| /* mark all library linked objects to be updated */ | /* mark all library linked objects to be updated */ | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||