mistake in recent commit allowd bpy.types.Scene() which would then crash blender (thanks for spotting Luca).

This commit is contained in:
2010-08-01 11:20:51 +00:00
parent d25747ee75
commit 8fd1d8f02a

View File

@@ -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)) {