From 6ec3313e2d18d5f4b44ad854bc2c79a9e921c04b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 29 Nov 2011 22:57:35 +0000 Subject: [PATCH] Fix: defining properties would fail with argument update=None instead of not specifying the argument. --- source/blender/python/intern/bpy_props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 39ad80169d2..c0d796669d6 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -233,7 +233,7 @@ static void bpy_prop_update_cb(struct bContext *C, struct PointerRNA *ptr, struc static int bpy_prop_callback_check(PyObject *py_func, int argcount) { - if (py_func) { + if (py_func && py_func != Py_None) { if (!PyFunction_Check(py_func)) { PyErr_Format(PyExc_TypeError, "update keyword: expected a function type, not a %.200s",