[Bf-blender-cvs] [9f753e56496] master: Fix build error after PyGPU changes
Brecht Van Lommel
noreply at git.blender.org
Tue Nov 29 18:50:41 CET 2022
Commit: 9f753e564967b21aa171520d1835caf7b220da51
Author: Brecht Van Lommel
Date: Tue Nov 29 18:46:59 2022 +0100
Branches: master
https://developer.blender.org/rB9f753e564967b21aa171520d1835caf7b220da51
Fix build error after PyGPU changes
===================================================================
M source/blender/python/gpu/gpu_py.c
M source/blender/python/gpu/gpu_py.h
===================================================================
diff --git a/source/blender/python/gpu/gpu_py.c b/source/blender/python/gpu/gpu_py.c
index a3948ebad15..96c92293877 100644
--- a/source/blender/python/gpu/gpu_py.c
+++ b/source/blender/python/gpu/gpu_py.c
@@ -65,7 +65,7 @@ static PyObject *py_error__getter(PyObject *UNUSED(self), void *UNUSED(type))
return NULL;
}
-static int py_error__setter(PyObject *UNUSED(self), PyObject *value, void *UNUSED(type))
+static int py_error__setter(PyObject *UNUSED(self), PyObject *UNUSED(value), void *UNUSED(type))
{
PyErr_SetString(PyExc_SystemError, g_error);
return -1;
diff --git a/source/blender/python/gpu/gpu_py.h b/source/blender/python/gpu/gpu_py.h
index c0abb60d419..ade9c5e3da4 100644
--- a/source/blender/python/gpu/gpu_py.h
+++ b/source/blender/python/gpu/gpu_py.h
@@ -6,6 +6,8 @@
#pragma once
+#include "../generic/py_capi_utils.h"
+
extern struct PyC_StringEnumItems bpygpu_primtype_items[];
extern struct PyC_StringEnumItems bpygpu_dataformat_items[];
More information about the Bf-blender-cvs
mailing list