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:
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r--source/blender/python/BPY_extern.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h
index e1e0d01055a..46b4dbc96d7 100644
--- a/source/blender/python/BPY_extern.h
+++ b/source/blender/python/BPY_extern.h
@@ -68,8 +68,7 @@ void BPY_thread_restore(BPy_ThreadStatePtr tstate);
(void)0
void BPY_text_free_code(struct Text *text);
-void BPY_modules_update(
- struct bContext *C); // XXX - annoying, need this for pointers that get out of date
+void BPY_modules_update(void);
void BPY_modules_load_user(struct bContext *C);
void BPY_app_handlers_reset(const short do_all);
@@ -88,6 +87,16 @@ int BPY_context_member_get(struct bContext *C,
void BPY_context_set(struct bContext *C);
void BPY_context_update(struct bContext *C);
+#define BPY_context_dict_clear_members(C, ...) \
+ BPY_context_dict_clear_members_array(&((C)->data.py_context), \
+ (C)->data.py_context_orig, \
+ ((const char *[]){__VA_ARGS__}), \
+ VA_NARGS_COUNT(__VA_ARGS__))
+void BPY_context_dict_clear_members_array(void **dict_p,
+ void *dict_orig,
+ const char *context_members[],
+ uint context_members_len);
+
void BPY_id_release(struct ID *id);
bool BPY_string_is_keyword(const char *str);