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/BPY_extern.h | |
parent | 3060217d39747589d66bc4501ceaf30f59923cdc (diff) |
Cleanup: move public doc-strings into headers for 'python/intern'
Ref T92709
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r-- | source/blender/python/BPY_extern.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 554d4a4541f..e233a078ea9 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -75,6 +75,9 @@ void BPY_thread_restore(BPy_ThreadStatePtr tstate); (void)0 void BPY_text_free_code(struct Text *text); +/** + * Needed so the #Main pointer in `bpy.data` doesn't become out of date. + */ void BPY_modules_update(void); void BPY_modules_load_user(struct bContext *C); @@ -103,6 +106,9 @@ int BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result); void BPY_context_set(struct bContext *C); +/** + * Use for updating while a python script runs - in case of file load. + */ void BPY_context_update(struct bContext *C); #define BPY_context_dict_clear_members(C, ...) \ @@ -127,6 +133,9 @@ void BPY_context_dict_clear_members_array(void **dict_p, void BPY_id_release(struct ID *id); +/** + * Avoids duplicating keyword list. + */ bool BPY_string_is_keyword(const char *str); /* bpy_rna_callback.c */ |