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/Interface1D/BPy_FEdge.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/Interface1D/BPy_FEdge.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp b/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
index 3eaad2bd8c4..369dd7c61a5 100644
--- a/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
+++ b/source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
@@ -337,14 +337,14 @@ PyObject * FEdge_setViewEdge( BPy_FEdge *self, PyObject *args ) {
PyObject *FEdge_setSmooth( BPy_FEdge *self , PyObject *args) {
- int b;
+ PyObject *py_b;
- if(!( PyArg_ParseTuple(args, "i", &b) )) {
+ if(!( PyArg_ParseTuple(args, "O", &py_b) && PyBool_Check(py_b) )) {
cout << "ERROR: FEdge_setSmooth" << endl;
Py_RETURN_NONE;
}
- self->fe->setSmooth( (bool) b );
+ self->fe->setSmooth( bool_from_PyBool(py_b) );
Py_RETURN_NONE;
}