diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-16 02:16:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-17 13:49:33 +0300 |
commit | a40d7b93ac3b530dd12491485e8471d3f3059ba8 (patch) | |
tree | f8e6c51eceee23b14ab04363b6678c3b8b69dc9a | |
parent | 8c3853a9b517d53397c81d88ccc5bf60874e4a38 (diff) |
PyAPI: bpy.ops enum error was cut short
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index aad47d14b7c..8309938b632 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; |