diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp index 86d7a726883..c68c30f9602 100644 --- a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp +++ b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp @@ -545,14 +545,14 @@ PyDoc_STRVAR(StrokeAttribute_alpha_doc, "\n" ":type: float"); -static PyObject *StrokeAttribute_alpha_get(BPy_StrokeAttribute *self, void *UNUSED(closure)) +static PyObject *StrokeAttribute_alpha_get(BPy_StrokeAttribute *self, void * /*closure*/) { return PyFloat_FromDouble(self->sa->getAlpha()); } static int StrokeAttribute_alpha_set(BPy_StrokeAttribute *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { float scalar; if ((scalar = PyFloat_AsDouble(value)) == -1.0f && PyErr_Occurred()) { @@ -569,7 +569,7 @@ PyDoc_STRVAR(StrokeAttribute_color_doc, "\n" ":type: :class:`mathutils.Color`"); -static PyObject *StrokeAttribute_color_get(BPy_StrokeAttribute *self, void *UNUSED(closure)) +static PyObject *StrokeAttribute_color_get(BPy_StrokeAttribute *self, void * /*closure*/) { return Color_CreatePyObject_cb( (PyObject *)self, StrokeAttribute_mathutils_cb_index, MATHUTILS_SUBTYPE_COLOR); @@ -577,7 +577,7 @@ static PyObject *StrokeAttribute_color_get(BPy_StrokeAttribute *self, void *UNUS static int StrokeAttribute_color_set(BPy_StrokeAttribute *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { float v[3]; if (mathutils_array_parse(v, 3, 3, value, "value must be a 3-dimensional vector") == -1) { @@ -594,7 +594,7 @@ PyDoc_STRVAR(StrokeAttribute_thickness_doc, "\n" ":type: :class:`mathutils.Vector`"); -static PyObject *StrokeAttribute_thickness_get(BPy_StrokeAttribute *self, void *UNUSED(closure)) +static PyObject *StrokeAttribute_thickness_get(BPy_StrokeAttribute *self, void * /*closure*/) { return Vector_CreatePyObject_cb( (PyObject *)self, 2, StrokeAttribute_mathutils_cb_index, MATHUTILS_SUBTYPE_THICKNESS); @@ -602,7 +602,7 @@ static PyObject *StrokeAttribute_thickness_get(BPy_StrokeAttribute *self, void * static int StrokeAttribute_thickness_set(BPy_StrokeAttribute *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { float v[2]; if (mathutils_array_parse(v, 2, 2, value, "value must be a 2-dimensional vector") == -1) { @@ -617,14 +617,14 @@ PyDoc_STRVAR(StrokeAttribute_visible_doc, "\n" ":type: bool"); -static PyObject *StrokeAttribute_visible_get(BPy_StrokeAttribute *self, void *UNUSED(closure)) +static PyObject *StrokeAttribute_visible_get(BPy_StrokeAttribute *self, void * /*closure*/) { return PyBool_from_bool(self->sa->isVisible()); } static int StrokeAttribute_visible_set(BPy_StrokeAttribute *self, PyObject *value, - void *UNUSED(closure)) + void * /*closure*/) { if (!PyBool_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be boolean"); |