diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-01 15:20:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-01 15:20:51 +0400 |
commit | 8fd1d8f02ab765038d798a4df33bbda821f8d7a0 (patch) | |
tree | bbdac1974edc8b67126e1219914cab3c28096ce8 /source | |
parent | d25747ee751096de2e417a7da1316bf5bf81c25a (diff) |
mistake in recent commit allowd bpy.types.Scene() which would then crash blender (thanks for spotting Luca).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 2a708c82697..8be9cc4cdae 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -3088,7 +3088,7 @@ static PyObject * pyrna_struct_new(PyTypeObject *type, PyObject *args, PyObject BPy_StructRNA *base; - if (!PyArg_ParseTuple(args, "|O!:bpy_struct.__new__", &pyrna_struct_Type, &base)) + if (!PyArg_ParseTuple(args, "O!:bpy_struct.__new__", &pyrna_struct_Type, &base)) return NULL; if (type == Py_TYPE(base)) { |