diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Convert.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Convert.cpp b/source/blender/freestyle/intern/python/BPy_Convert.cpp index 68b4b9d2e21..2eff0b9ed64 100644 --- a/source/blender/freestyle/intern/python/BPy_Convert.cpp +++ b/source/blender/freestyle/intern/python/BPy_Convert.cpp @@ -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; } |