diff options
author | Joshua Leung <aligorith@gmail.com> | 2012-05-04 18:34:10 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2012-05-04 18:34:10 +0400 |
commit | 133bdac1d0cfe92084361f59bbd44b2ecd8127eb (patch) | |
tree | bc4f384e2668c09ff7ad1fa5dec8db47691e3ddf /source/blender/python/intern | |
parent | 2bc29ff4260e28dd89409255997858ca447ad51f (diff) |
Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
items from python)
Thanks Philipp Oeser (lichtwerk)
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 4d0c05f6582..dbb25eb854b 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -1071,8 +1071,8 @@ static EnumPropertyItem *enum_items_from_py(PyObject *seq_fast, PyObject *def, i else { MEM_freeN(items); PyErr_SetString(PyExc_TypeError, - "EnumProperty(...): expected an tuple containing " - "(identifier, name description) and optionally a " + "EnumProperty(...): expected a tuple containing " + "(identifier, name, description) and optionally a " "unique number"); return NULL; } |