Blender Git Commit Log

Git Commits -> Revision 6d156a1

Revision 6d156a1 by Campbell Barton (master)
May 25, 2009, 13:48 (GMT)
Store the context for python in a static variable with assessor functions - BPy_GetContext/BPy_SetContext,
Still not happy with this in the long term but its less problematic then storing the context in pythons namespace which couldn't be set before importing modules.

This might fix a crash quite a few people have reported (but I cant reproduce).

Commit Details:

Full Hash: 6d156a1bab818a8b41dbabca9fb539bde97ad810
SVN Revision: 20403
Parent Commit: edd783d
Lines Changed: +23, -25

6 Modified Paths:

/source/blender/python/intern/bpy_interface.c (+3, -3) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+3, -8) (Diff)
/source/blender/python/intern/bpy_ui.c (+5, -13) (Diff)
/source/blender/python/intern/bpy_util.c (+7, -0) (Diff)
/source/blender/python/intern/bpy_util.h (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021