diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-01 05:54:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-01 05:54:29 +0300 |
commit | b17bbf9d9548a608d865a25c629e142f12ce762a (patch) | |
tree | eeba3478ada3f0d10c20774e57b2fe1e9a18c6f1 /source/blender/python/intern/bpy_rna.h | |
parent | 339d3bf05f6b34064ed9e0c5016b315e0a1e5cf9 (diff) |
fix for 2 segfaults running in background mode.
- operators which reload G.main would crash blender if called from python and then accessed bpy.data.*
- WM_read_homefile_exec was setting the contexts Scene to NULL as a signal for the event system, this didnt work in background mode, crashing when property update functions expected scene to be set.
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r-- | source/blender/python/intern/bpy_rna.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h index 854f077abed..31954eb6828 100644 --- a/source/blender/python/intern/bpy_rna.h +++ b/source/blender/python/intern/bpy_rna.h @@ -110,4 +110,6 @@ int pyrna_array_contains_py(PointerRNA *ptr, PropertyRNA *prop, PyObject *value) int pyrna_write_check(void); +void BPY_modules_update(struct bContext *C); //XXX temp solution + #endif |