diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface1D/FEdge')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp | 32 | ||||
-rw-r--r-- | source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp | 14 |
2 files changed, 21 insertions, 25 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp b/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp index e32910cf53d..0a4d1a5d32c 100644 --- a/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp +++ b/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp @@ -193,15 +193,13 @@ PyDoc_STRVAR(FEdgeSharp_normal_right_doc, "\n" ":type: :class:`mathutils.Vector`"); -static PyObject *FEdgeSharp_normal_right_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_normal_right_get(BPy_FEdgeSharp *self, void * /*closure*/) { return Vector_CreatePyObject_cb( (PyObject *)self, 3, FEdgeSharp_mathutils_cb_index, MATHUTILS_SUBTYPE_NORMAL_A); } -static int FEdgeSharp_normal_right_set(BPy_FEdgeSharp *self, - PyObject *value, - void *UNUSED(closure)) +static int FEdgeSharp_normal_right_set(BPy_FEdgeSharp *self, PyObject *value, void * /*closure*/) { float v[3]; if (mathutils_array_parse(v, 3, 3, value, "value must be a 3-dimensional vector") == -1) { @@ -217,13 +215,13 @@ PyDoc_STRVAR(FEdgeSharp_normal_left_doc, "\n" ":type: :class:`mathutils.Vector`"); -static PyObject *FEdgeSharp_normal_left_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_normal_left_get(BPy_FEdgeSharp *self, void * /*closure*/) { return Vector_CreatePyObject_cb( (PyObject *)self, 3, FEdgeSharp_mathutils_cb_index, MATHUTILS_SUBTYPE_NORMAL_B); } -static int FEdgeSharp_normal_left_set(BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure)) +static int FEdgeSharp_normal_left_set(BPy_FEdgeSharp *self, PyObject *value, void * /*closure*/) { float v[3]; if (mathutils_array_parse(v, 3, 3, value, "value must be a 3-dimensional vector") == -1) { @@ -241,14 +239,14 @@ PyDoc_STRVAR(FEdgeSharp_material_index_right_doc, "\n" ":type: int"); -static PyObject *FEdgeSharp_material_index_right_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_material_index_right_get(BPy_FEdgeSharp *self, void * /*closure*/) { return PyLong_FromLong(self->fes->aFrsMaterialIndex()); } static int FEdgeSharp_material_index_right_set(BPy_FEdgeSharp *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { uint i = PyLong_AsUnsignedLong(value); if (PyErr_Occurred()) { @@ -263,14 +261,14 @@ PyDoc_STRVAR(FEdgeSharp_material_index_left_doc, "\n" ":type: int"); -static PyObject *FEdgeSharp_material_index_left_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_material_index_left_get(BPy_FEdgeSharp *self, void * /*closure*/) { return PyLong_FromLong(self->fes->bFrsMaterialIndex()); } static int FEdgeSharp_material_index_left_set(BPy_FEdgeSharp *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { uint i = PyLong_AsUnsignedLong(value); if (PyErr_Occurred()) { @@ -286,7 +284,7 @@ PyDoc_STRVAR(FEdgeSharp_material_right_doc, "\n" ":type: :class:`Material`"); -static PyObject *FEdgeSharp_material_right_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_material_right_get(BPy_FEdgeSharp *self, void * /*closure*/) { return BPy_FrsMaterial_from_FrsMaterial(self->fes->aFrsMaterial()); } @@ -296,7 +294,7 @@ PyDoc_STRVAR(FEdgeSharp_material_left_doc, "\n" ":type: :class:`Material`"); -static PyObject *FEdgeSharp_material_left_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_material_left_get(BPy_FEdgeSharp *self, void * /*closure*/) { return BPy_FrsMaterial_from_FrsMaterial(self->fes->bFrsMaterial()); } @@ -308,14 +306,14 @@ PyDoc_STRVAR(FEdgeSharp_face_mark_right_doc, "\n" ":type: bool"); -static PyObject *FEdgeSharp_face_mark_right_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_face_mark_right_get(BPy_FEdgeSharp *self, void * /*closure*/) { return PyBool_from_bool(self->fes->aFaceMark()); } static int FEdgeSharp_face_mark_right_set(BPy_FEdgeSharp *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { if (!PyBool_Check(value)) { return -1; @@ -329,14 +327,12 @@ PyDoc_STRVAR(FEdgeSharp_face_mark_left_doc, "\n" ":type: bool"); -static PyObject *FEdgeSharp_face_mark_left_get(BPy_FEdgeSharp *self, void *UNUSED(closure)) +static PyObject *FEdgeSharp_face_mark_left_get(BPy_FEdgeSharp *self, void * /*closure*/) { return PyBool_from_bool(self->fes->bFaceMark()); } -static int FEdgeSharp_face_mark_left_set(BPy_FEdgeSharp *self, - PyObject *value, - void *UNUSED(closure)) +static int FEdgeSharp_face_mark_left_set(BPy_FEdgeSharp *self, PyObject *value, void * /*closure*/) { if (!PyBool_Check(value)) { return -1; diff --git a/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp b/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp index 93943dcda05..51ae9334f37 100644 --- a/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp +++ b/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp @@ -143,12 +143,12 @@ PyDoc_STRVAR(FEdgeSmooth_normal_doc, "\n" ":type: :class:`mathutils.Vector`"); -static PyObject *FEdgeSmooth_normal_get(BPy_FEdgeSmooth *self, void *UNUSED(closure)) +static PyObject *FEdgeSmooth_normal_get(BPy_FEdgeSmooth *self, void * /*closure*/) { return Vector_CreatePyObject_cb((PyObject *)self, 3, FEdgeSmooth_mathutils_cb_index, 0); } -static int FEdgeSmooth_normal_set(BPy_FEdgeSmooth *self, PyObject *value, void *UNUSED(closure)) +static int FEdgeSmooth_normal_set(BPy_FEdgeSmooth *self, PyObject *value, void * /*closure*/) { float v[3]; if (mathutils_array_parse(v, 3, 3, value, "value must be a 3-dimensional vector") == -1) { @@ -164,14 +164,14 @@ PyDoc_STRVAR(FEdgeSmooth_material_index_doc, "\n" ":type: int"); -static PyObject *FEdgeSmooth_material_index_get(BPy_FEdgeSmooth *self, void *UNUSED(closure)) +static PyObject *FEdgeSmooth_material_index_get(BPy_FEdgeSmooth *self, void * /*closure*/) { return PyLong_FromLong(self->fes->frs_materialIndex()); } static int FEdgeSmooth_material_index_set(BPy_FEdgeSmooth *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { uint i = PyLong_AsUnsignedLong(value); if (PyErr_Occurred()) { @@ -186,7 +186,7 @@ PyDoc_STRVAR(FEdgeSmooth_material_doc, "\n" ":type: :class:`Material`"); -static PyObject *FEdgeSmooth_material_get(BPy_FEdgeSmooth *self, void *UNUSED(closure)) +static PyObject *FEdgeSmooth_material_get(BPy_FEdgeSmooth *self, void * /*closure*/) { return BPy_FrsMaterial_from_FrsMaterial(self->fes->frs_material()); } @@ -196,12 +196,12 @@ PyDoc_STRVAR(FEdgeSmooth_face_mark_doc, "\n" ":type: bool"); -static PyObject *FEdgeSmooth_face_mark_get(BPy_FEdgeSmooth *self, void *UNUSED(closure)) +static PyObject *FEdgeSmooth_face_mark_get(BPy_FEdgeSmooth *self, void * /*closure*/) { return PyBool_from_bool(self->fes->faceMark()); } -static int FEdgeSmooth_face_mark_set(BPy_FEdgeSmooth *self, PyObject *value, void *UNUSED(closure)) +static int FEdgeSmooth_face_mark_set(BPy_FEdgeSmooth *self, PyObject *value, void * /*closure*/) { if (!PyBool_Check(value)) { return -1; |