diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-11 14:34:59 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-11 14:37:16 +0300 |
commit | e20fe187066cfb9b1847e656f0f9cef5c5bf7e73 (patch) | |
tree | 54eb0acc125f68ff851b01d9f45602fd3a5824a9 /source/blender/python | |
parent | f4c8b4eb3e309ebc043cd998faa6d8d2bada14ac (diff) |
Correct error in 1032f111d087e7ba77c16a4af78704019714bd6a
Thanks to Jacques Lucke for spotting.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 2a52253eece..16e90a55844 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -5908,7 +5908,7 @@ static PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *dat } else { data_ch = (flag & PROP_THICK_WRAP) ? (char *)data : *(char **)data; - data_ch_len = data_ch ? 0 : strlen(data_ch); + data_ch_len = data_ch ? strlen(data_ch) : 0; } if (UNLIKELY(data_ch == NULL)) { |