Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-05-04 18:34:10 +0400
committerJoshua Leung <aligorith@gmail.com>2012-05-04 18:34:10 +0400
commit133bdac1d0cfe92084361f59bbd44b2ecd8127eb (patch)
treebc4f384e2668c09ff7ad1fa5dec8db47691e3ddf /source/blender/python
parent2bc29ff4260e28dd89409255997858ca447ad51f (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')
-rw-r--r--source/blender/python/intern/bpy_props.c4
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;
}