[Bf-blender-cvs] [13dc766] master: PyAPI: bpy.ops enum error was cut short
Campbell Barton
noreply at git.blender.org
Mon Mar 16 00:17:03 CET 2015
Commit: 13dc766148870097b36813a81b8eb45b0f6dc065
Author: Campbell Barton
Date: Mon Mar 16 10:16:16 2015 +1100
Branches: master
https://developer.blender.org/rB13dc766148870097b36813a81b8eb45b0f6dc065
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