Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-25 05:38:19 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-25 05:38:19 +0400
commitc0f567e757cab55c1ed77d44a204c21023422859 (patch)
treebf85e3e1dd80407627febbf8c4dbb4a12c71e6df /source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
parentd8d9839ab31f774d6e8bcdda00cac31db0995d41 (diff)
soc-2008-mxcurioni: fully implemented (but did not test) ViewEdge class. Modified functions accross API taking input boolean values.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
index 24c0263bc5f..541ef4f4516 100644
--- a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
+++ b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
@@ -395,17 +395,19 @@ PyObject * StrokeAttribute_setThickness( BPy_StrokeAttribute *self, PyObject *ar
}
PyObject * StrokeAttribute_setVisible( BPy_StrokeAttribute *self, PyObject *args ) {
- int i = 0;
+ PyObject *py_b;
- if(!( PyArg_ParseTuple(args, "i", &i) )) {
+ if(!( PyArg_ParseTuple(args, "O", &py_b) && PyBool_Check(py_b) )) {
cout << "ERROR: StrokeAttribute_setVisible" << endl;
Py_RETURN_NONE;
}
- self->sa->setVisible( i );
+ self->sa->setVisible( bool_from_PyBool(py_b) );
+
Py_RETURN_NONE;
}
+
PyObject * StrokeAttribute_setAttributeReal( BPy_StrokeAttribute *self, PyObject *args ) {
char *s = 0;
double d = 0;