diff options
Diffstat (limited to 'source/blender/python/intern/bpy_props.c')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 6e70f97fd4e..19ded7fb4f3 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -1951,7 +1951,7 @@ static PyObject *BPy_BoolProperty(PyObject *self, PyObject *args, PyObject *kw) "options", "subtype", "update", "get", "set", NULL}; const char *id = NULL, *name = NULL, *description = ""; int id_len; - int def = 0; + bool def = false; PropertyRNA *prop; PyObject *pyopts = NULL; int opts = 0; @@ -1962,9 +1962,9 @@ static PyObject *BPy_BoolProperty(PyObject *self, PyObject *args, PyObject *kw) PyObject *set_cb = NULL; if (!PyArg_ParseTupleAndKeywords(args, kw, - "s#|ssiO!sOOO:BoolProperty", + "s#|ssO&O!sOOO:BoolProperty", (char **)kwlist, &id, &id_len, - &name, &description, &def, + &name, &description, PyC_ParseBool, &def, &PySet_Type, &pyopts, &pysubtype, &update_cb, &get_cb, &set_cb)) { |