Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-30 06:25:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-30 06:25:27 +0400
commit0d6ae3fda2e5a3dbde941b6985e6895a42c71b9e (patch)
treeb0c89b9a01da31fffc6b6db7c9395ff2db97de53 /source/blender/python/intern
parent19103b443711d7c1b3a24f7fab949f71343d8200 (diff)
Main API: refactor naming, use BKE_main_ prefix and add main arg.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_library.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_library.c b/source/blender/python/intern/bpy_library.c
index 0ab8543c4ac..f4c21b1ca75 100644
--- a/source/blender/python/intern/bpy_library.c
+++ b/source/blender/python/intern/bpy_library.c
@@ -324,7 +324,7 @@ static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *UNUSED(args))
Main *mainl = NULL;
int err = 0;
- flag_all_listbases_ids(LIB_PRE_EXISTING, 1);
+ BKE_main_id_flag_all(bmain, LIB_PRE_EXISTING, true);
/* here appending/linking starts */
mainl = BLO_library_append_begin(bmain, &(self->blo_handle), self->relpath);
@@ -395,7 +395,7 @@ static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *UNUSED(args))
/* exception raised above, XXX, this leaks some memory */
BLO_blendhandle_close(self->blo_handle);
self->blo_handle = NULL;
- flag_all_listbases_ids(LIB_PRE_EXISTING, 0);
+ BKE_main_id_flag_all(bmain, LIB_PRE_EXISTING, false);
return NULL;
}
else {
@@ -407,7 +407,7 @@ static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *UNUSED(args))
/* copied from wm_operator.c */
{
/* mark all library linked objects to be updated */
- recalc_all_library_objects(G.main);
+ BKE_main_lib_objects_recalc_all(G.main);
/* append, rather than linking */
if ((self->flag & FILE_LINK) == 0) {
@@ -415,7 +415,7 @@ static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *UNUSED(args))
}
}
- flag_all_listbases_ids(LIB_PRE_EXISTING, 0);
+ BKE_main_id_flag_all(bmain, LIB_PRE_EXISTING, false);
Py_RETURN_NONE;
}