[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46280] trunk/blender/source/blender/ python/intern/bpy_props.c: Patch [#31279] clarifiy a python error-string ( when incorrectly specifying enum
Joshua Leung
aligorith at gmail.com
Fri May 4 16:34:10 CEST 2012
Revision: 46280
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46280
Author: aligorith
Date: 2012-05-04 14:34:10 +0000 (Fri, 04 May 2012)
Log Message:
-----------
Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
items from python)
Thanks Philipp Oeser (lichtwerk)
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 2012-05-04 14:27:13 UTC (rev 46279)
+++ trunk/blender/source/blender/python/intern/bpy_props.c 2012-05-04 14:34:10 UTC (rev 46280)
@@ -1071,8 +1071,8 @@
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;
}
More information about the Bf-blender-cvs
mailing list