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!
This commit is contained in:
Bastien Montagne
2025-08-20 12:48:47 +02:00
parent 2f2ff44e56
commit 27a613d9ea

View File

@@ -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);
}