Changed the type of returned value of BPy_directedViewEdge_from_directedViewEdge()
from list to tuple.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user