diff options
Diffstat (limited to 'source/blender/python/generic/blf_api.c')
-rw-r--r-- | source/blender/python/generic/blf_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/generic/blf_api.c b/source/blender/python/generic/blf_api.c index 80e140b7eac..e81b885f7bb 100644 --- a/source/blender/python/generic/blf_api.c +++ b/source/blender/python/generic/blf_api.c @@ -141,12 +141,13 @@ static char py_blf_draw_doc[] = static PyObject *py_blf_draw(PyObject *UNUSED(self), PyObject *args) { char *text; + int text_length; int fontid; - if (!PyArg_ParseTuple(args, "is:blf.draw", &fontid, &text)) + if (!PyArg_ParseTuple(args, "is#:blf.draw", &fontid, &text, &text_length)) return NULL; - BLF_draw(fontid, text); + BLF_draw(fontid, text, (unsigned int)text_length); Py_RETURN_NONE; } |