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