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/BPY_extern.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/BPY_extern.h')
-rw-r--r-- | source/blender/python/BPY_extern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 33ea139b474..83a40ecc068 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -82,6 +82,7 @@ int BPY_string_exec(struct bContext *C, const char *expr); void BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */ int BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result); void BPY_context_set(struct bContext *C); +void BPY_context_update(struct bContext *C); void BPY_id_release(struct ID *id); |