diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-10 13:40:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-10 13:40:53 +0300 |
commit | 63f8d18c0fbc8bce12c65eb6bd49ec28eef703e4 (patch) | |
tree | b101eb9b530653d81ad8dd3630a6b5c2b71fcfda /source/blender/python/intern/bpy_interface.c | |
parent | 3060217d39747589d66bc4501ceaf30f59923cdc (diff) |
Cleanup: move public doc-strings into headers for 'python/intern'
Ref T92709
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 7f1917ce6a6..faa668df775 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -80,6 +80,7 @@ #include "../mathutils/mathutils.h" /* Logging types to use anywhere in the Python modules. */ + CLG_LOGREF_DECLARE_GLOBAL(BPY_LOG_CONTEXT, "bpy.context"); CLG_LOGREF_DECLARE_GLOBAL(BPY_LOG_INTERFACE, "bpy.interface"); CLG_LOGREF_DECLARE_GLOBAL(BPY_LOG_RNA, "bpy.rna"); @@ -103,7 +104,6 @@ static double bpy_timer_run; /* time for each python script run */ static double bpy_timer_run_tot; /* accumulate python runs */ #endif -/* use for updating while a python script runs - in case of file load */ void BPY_context_update(bContext *C) { /* don't do this from a non-main (e.g. render) thread, it can cause a race @@ -141,7 +141,6 @@ void bpy_context_set(bContext *C, PyGILState_STATE *gilstate) } } -/* context should be used but not now because it causes some bugs */ void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate) { py_call_level--; @@ -228,9 +227,6 @@ void BPY_text_free_code(Text *text) } } -/** - * Needed so the #Main pointer in `bpy.data` doesn't become out of date. - */ void BPY_modules_update(void) { #if 0 /* slow, this runs all the time poll, draw etc 100's of time a sec. */ @@ -323,7 +319,6 @@ static void pystatus_exit_on_error(PyStatus status) } #endif -/* call BPY_context_set first */ void BPY_python_start(bContext *C, int argc, const char **argv) { #ifndef WITH_PYTHON_MODULE @@ -871,9 +866,6 @@ static void bpy_module_free(void *UNUSED(mod)) #endif -/** - * Avoids duplicating keyword list. - */ bool BPY_string_is_keyword(const char *str) { /* list is from... |