soc-2008-mxcurioni: fully implemented (but did not test) ViewEdge class. Modified functions accross API taking input boolean values.

This commit is contained in:
Maxime Curioni
2008-07-25 01:38:19 +00:00
parent d8d9839ab3
commit c0f567e757
5 changed files with 290 additions and 191 deletions

View File

@@ -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;
}