diff options
author | Colin Basnett <cmbasnett> | 2019-10-01 20:36:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:10:46 +0300 |
commit | f0f189de76a3ac44208053a441a81c86718e6ef2 (patch) | |
tree | fec3b2032d695faa47ffc02337c996c5a299fcb7 /source | |
parent | 9cda01caf7d276ef678cbad93af0f55c37544e29 (diff) |
Fix ImBuf.load failure showing filename as garbage bytes
Differential Revision: https://developer.blender.org/D5879
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/generic/imbuf_py_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/imbuf_py_api.c b/source/blender/python/generic/imbuf_py_api.c index ff5e4769f19..6a7f899488b 100644 --- a/source/blender/python/generic/imbuf_py_api.c +++ b/source/blender/python/generic/imbuf_py_api.c @@ -463,7 +463,7 @@ static PyObject *M_imbuf_load(PyObject *UNUSED(self), PyObject *args, PyObject * const int file = BLI_open(filepath, O_BINARY | O_RDONLY, 0); if (file == -1) { - PyErr_Format(PyExc_IOError, "load: %s, failed to open file '%s'", strerror(errno)); + PyErr_Format(PyExc_IOError, "load: %s, failed to open file '%s'", strerror(errno), filepath); return NULL; } |