diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-11 05:43:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-11 05:43:30 +0300 |
commit | d7257a983fbda67fcc1c9226d5f82df61fb2d3f7 (patch) | |
tree | 95140a50525ac52500695335e87e21d25b0356ae /source/blender/python/intern/bpy_rna.c | |
parent | bc97f88576713ac76fbc238cbb439347dfcbddff (diff) |
bugfix [#26454] WITH_PYTHON_SAFETY crash.
Diffstat (limited to 'source/blender/python/intern/bpy_rna.c')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 0f452605c28..8544a6b493e 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -4843,6 +4843,10 @@ PyObject *pyrna_prop_collection_iter_CreatePyObject(PointerRNA *ptr, PropertyRNA { BPy_PropertyCollectionIterRNA *self= PyObject_New(BPy_PropertyCollectionIterRNA, &pyrna_prop_collection_iter_Type); +#ifdef USE_WEAKREFS + self->in_weakreflist= NULL; +#endif + RNA_property_collection_begin(ptr, prop, &self->iter); return (PyObject *)self; |