Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-05 19:09:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-05 19:09:25 +0400
commit12981b004891aa6dbd2334a4c732ba38c1b0c349 (patch)
treea887d0b66b000fa171b879a053060ccac306f1ba /source/blender/python/bmesh/bmesh_py_types.c
parent1c3c4f3954c4eadfde3431d5b1d800f664b3d6e6 (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/bmesh/bmesh_py_types.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types.c3
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)