From a950d0b2b1effbf2e77bbd7483ede604985b607d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 4 Jul 2025 13:20:39 +1000 Subject: [PATCH] Build: correct error in 2a414eea0c0bfd7063f6d45a33e339698196f862 --- source/blender/python/generic/python_compat.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/generic/python_compat.hh b/source/blender/python/generic/python_compat.hh index 5e0e7dd4cfd..58f36280423 100644 --- a/source/blender/python/generic/python_compat.hh +++ b/source/blender/python/generic/python_compat.hh @@ -34,7 +34,7 @@ PyObject *oname = PyUnicode_FromString(name); if (oname == nullptr) { *result = nullptr; - return nullptr; + return -1; } const int status = PyObject_GetOptionalAttr(obj, oname, result); Py_DECREF(oname);