From 63f8d18c0fbc8bce12c65eb6bd49ec28eef703e4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 10 Dec 2021 21:40:53 +1100 Subject: Cleanup: move public doc-strings into headers for 'python/intern' Ref T92709 --- source/blender/python/BPY_extern.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/python/BPY_extern.h') 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 */ -- cgit v1.2.3