Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
items from python) Thanks Philipp Oeser (lichtwerk)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user