Python/context: python could get invalid bpy.data in scene update handler after
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 8 May 2012 22:07:06 +0000 (22:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 8 May 2012 22:07:06 +0000 (22:07 +0000)
commitd9ce1cda94c256326d09efa69b55682bde98ea8b
treeceb0555b93092d0a48fa82025553ae12fcc31ae3
parentf6abd6ee401fb19a3005c0f0b604674b026eb270
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.
source/blender/blenkernel/intern/blender.c
source/blender/python/BPY_extern.h
source/blender/python/intern/bpy_interface.c
source/blender/python/intern/bpy_rna.c
source/blender/python/intern/bpy_util.h