From 133bdac1d0cfe92084361f59bbd44b2ecd8127eb Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 4 May 2012 14:34:10 +0000 Subject: [PATCH] Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum items from python) Thanks Philipp Oeser (lichtwerk) --- source/blender/python/intern/bpy_props.c | 4 ++-- 1 file 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; }