diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-09 02:07:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-09 02:07:06 +0400 |
commit | d9ce1cda94c256326d09efa69b55682bde98ea8b (patch) | |
tree | ceb0555b93092d0a48fa82025553ae12fcc31ae3 /source/blender/python/intern/bpy_util.h | |
parent | f6abd6ee401fb19a3005c0f0b604674b026eb270 (diff) |
Python/context: python could get invalid bpy.data in scene update handler after
undo.
The way this got updated from the context is a bit unreliable, and for handlers
the update couldn't happen because there is no context passed in. Now it's
updated from setup_app_data, which is where the change actually happens. I left
in the other updates to be sure but they should not be needed anymore.
Diffstat (limited to 'source/blender/python/intern/bpy_util.h')
-rw-r--r-- | source/blender/python/intern/bpy_util.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_util.h b/source/blender/python/intern/bpy_util.h index 4bebcb2ed85..63660b06813 100644 --- a/source/blender/python/intern/bpy_util.h +++ b/source/blender/python/intern/bpy_util.h @@ -49,7 +49,6 @@ short BPy_errors_to_report(struct ReportList *reports); struct bContext *BPy_GetContext(void); void BPy_SetContext(struct bContext *C); -extern void bpy_context_update(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 |