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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user