From 27a613d9eaf468efb14de61edee2e29f0aed8a7c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 20 Aug 2025 12:48:47 +0200 Subject: [PATCH] Fix: BPY props: broken custom set function for strings. Another dummy mistake in BPY accessors refactor from yesterday (134d66201a)... We critically need more unittests in this area! --- source/blender/python/intern/bpy_props.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/blender/python/intern/bpy_props.cc b/source/blender/python/intern/bpy_props.cc index 2c97f30b866..ad5db8f62dd 100644 --- a/source/blender/python/intern/bpy_props.cc +++ b/source/blender/python/intern/bpy_props.cc @@ -1339,8 +1339,6 @@ static void bpy_prop_string_set_fn(PointerRNA *ptr, PropertyRNA *prop, const cha if (!py_value) { PyErr_SetString(PyExc_ValueError, "the set value must be a valid string"); PyC_Err_PrintWithFunc(py_func); - } - else { py_value = Py_None; Py_INCREF(py_value); }