diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-07 20:20:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-07 20:20:19 +0400 |
commit | 70f011bbcea9aee222e43895fea503b26d3d566a (patch) | |
tree | 829ba8d75f662c5a49369e05aa0876adec3a9e9e /source/blender/python/intern/bpy_util.h | |
parent | ce273aee084fd367245d20a15b307d4ad99584d8 (diff) |
bpy_context_set and bpy_context_clear to replace a number of functions (some were not always called causing bugs).
fix for a leak when trying to run a text with a syntax error too.
Diffstat (limited to 'source/blender/python/intern/bpy_util.h')
-rw-r--r-- | source/blender/python/intern/bpy_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_util.h b/source/blender/python/intern/bpy_util.h index 470dd4c2a45..df204b7b90d 100644 --- a/source/blender/python/intern/bpy_util.h +++ b/source/blender/python/intern/bpy_util.h @@ -82,4 +82,8 @@ int BPy_errors_to_report(struct ReportList *reports); struct bContext *BPy_GetContext(void); void BPy_SetContext(struct bContext *C); +extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate); +extern void bpy_context_clear(struct bContext *C, PyGILState_STATE *gilstate); + + #endif |