Docs: improve imbuf.write docstring
The file path wasn't documented as being optional.
This commit is contained in:
@@ -495,15 +495,16 @@ static PyObject *M_imbuf_load(PyObject *UNUSED(self), PyObject *args, PyObject *
|
||||
return Py_ImBuf_CreatePyObject(ibuf);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(M_imbuf_write_doc,
|
||||
".. function:: write(image, filepath)\n"
|
||||
"\n"
|
||||
" Write an image.\n"
|
||||
"\n"
|
||||
" :arg image: the image to write.\n"
|
||||
" :type image: :class:`ImBuf`\n"
|
||||
" :arg filepath: the filepath of the image.\n"
|
||||
" :type filepath: string\n");
|
||||
PyDoc_STRVAR(
|
||||
M_imbuf_write_doc,
|
||||
".. function:: write(image, filepath=image.filepath)\n"
|
||||
"\n"
|
||||
" Write an image.\n"
|
||||
"\n"
|
||||
" :arg image: the image to write.\n"
|
||||
" :type image: :class:`ImBuf`\n"
|
||||
" :arg filepath: Optional filepath of the image (fallback to the images file path).\n"
|
||||
" :type filepath: string\n");
|
||||
static PyObject *M_imbuf_write(PyObject *UNUSED(self), PyObject *args, PyObject *kw)
|
||||
{
|
||||
Py_ImBuf *py_imb;
|
||||
|
Reference in New Issue
Block a user