diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 19:09:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 19:09:25 +0400 |
commit | 12981b004891aa6dbd2334a4c732ba38c1b0c349 (patch) | |
tree | a887d0b66b000fa171b879a053060ccac306f1ba /source/blender/python | |
parent | 1c3c4f3954c4eadfde3431d5b1d800f664b3d6e6 (diff) |
fix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh UV Layer on a BMVert
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 29fe0332ffa..833ec3b7467 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -3643,7 +3643,8 @@ char *BPy_BMElem_StringFromHType_ex(const char htype, char ret[32]) if (htype & BM_FACE) ret_ptr += sprintf(ret_ptr, "/%s", BPy_BMFace_Type.tp_name); if (htype & BM_LOOP) ret_ptr += sprintf(ret_ptr, "/%s", BPy_BMLoop_Type.tp_name); ret[0] = '('; - *ret_ptr = ')'; + *ret_ptr++ = ')'; + *ret_ptr = '\0'; return ret; } char *BPy_BMElem_StringFromHType(const char htype) |