[Bf-blender-cvs] [a40d7b9] blender-v2.74-release: PyAPI: bpy.ops enum error was cut short
Campbell Barton
noreply at git.blender.org
Tue Mar 17 11:50:17 CET 2015
Commit: a40d7b93ac3b530dd12491485e8471d3f3059ba8
Author: Campbell Barton
Date: Mon Mar 16 10:16:16 2015 +1100
Branches: blender-v2.74-release
https://developer.blender.org/rBa40d7b93ac3b530dd12491485e8471d3f3059ba8
PyAPI: bpy.ops enum error was cut short
===================================================================
M source/blender/python/intern/bpy_operator.c
===================================================================
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index aad47d1..8309938 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -100,7 +100,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args)
char *enum_str = BPy_enum_as_string(operator_context_items);
PyErr_Format(PyExc_TypeError,
"Calling operator \"bpy.ops.%s.poll\" error, "
- "expected a string enum in (%.200s)",
+ "expected a string enum in (%s)",
opname, enum_str);
MEM_freeN(enum_str);
return NULL;
@@ -186,7 +186,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
char *enum_str = BPy_enum_as_string(operator_context_items);
PyErr_Format(PyExc_TypeError,
"Calling operator \"bpy.ops.%s\" error, "
- "expected a string enum in (%.200s)",
+ "expected a string enum in (%s)",
opname, enum_str);
MEM_freeN(enum_str);
return NULL;
More information about the Bf-blender-cvs
mailing list