Page MenuHome

dev-blender-T47136.patch

dev-blender-T47136.patch

diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index 529ee3b..7ac8b43 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -2555,6 +2555,8 @@ BPY_PROPDEF_SUBTYPE_STRING_DOC
BPY_PROPDEF_UPDATE_DOC
BPY_PROPDEF_GET_DOC
BPY_PROPDEF_SET_DOC
+".. note:: When using ``subtype='BYTE_STRING'`` in a class directly like in the examples above, \n"
+" the bytes string will be truncated at the first null byte. Use ``ob['prop'] = b'hello\\0world'`` as a workaround.\n"
);
static PyObject *BPy_StringProperty(PyObject *self, PyObject *args, PyObject *kw)
{

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1d/49/c0dae4b66d1ca940fa3c6afc3e18

Event Timeline