Changed the type of returned value of BPy_directedViewEdge_from_directedViewEdge()

from list to tuple.
This commit is contained in:
2009-08-01 18:03:43 +00:00
parent 2c829e9bd3
commit 6d1ad351f3

View File

@@ -289,10 +289,10 @@ PyObject * BPy_CurvePoint_from_CurvePoint_ptr( CurvePoint *cp ) {
}
PyObject * BPy_directedViewEdge_from_directedViewEdge( ViewVertex::directedViewEdge& dve ) {
PyObject *py_dve = PyList_New(2);
PyObject *py_dve = PyTuple_New(2);
PyList_SetItem( py_dve, 0, BPy_ViewEdge_from_ViewEdge_ptr(dve.first) );
PyList_SetItem( py_dve, 1, PyBool_from_bool(dve.second) );
PyTuple_SetItem( py_dve, 0, BPy_ViewEdge_from_ViewEdge_ptr(dve.first) );
PyTuple_SetItem( py_dve, 1, PyBool_from_bool(dve.second) );
return py_dve;
}