diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-30 06:25:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-30 06:25:27 +0400 |
commit | 0d6ae3fda2e5a3dbde941b6985e6895a42c71b9e (patch) | |
tree | b0c89b9a01da31fffc6b6db7c9395ff2db97de53 /source/blender/python/intern | |
parent | 19103b443711d7c1b3a24f7fab949f71343d8200 (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.c | 8 |
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; } |