Revision: 42276
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42276
Author:   blendix
Date:     2011-11-29 22:57:35 +0000 (Tue, 29 Nov 2011)
Log Message:
-----------
Fix: defining properties would fail with argument update=None instead of not
specifying the argument.

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_props.c

Modified: trunk/blender/source/blender/python/intern/bpy_props.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_props.c      2011-11-29 
22:37:16 UTC (rev 42275)
+++ trunk/blender/source/blender/python/intern/bpy_props.c      2011-11-29 
22:57:35 UTC (rev 42276)
@@ -233,7 +233,7 @@
 
 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",

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to