[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22123] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python/BPy_Convert.cpp: Changed the type of returned value of BPy_directedViewEdge_from_directedViewEdge ()
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sat Aug 1 20:03:43 CEST 2009
Revision: 22123
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22123
Author: kjym3
Date: 2009-08-01 20:03:43 +0200 (Sat, 01 Aug 2009)
Log Message:
-----------
Changed the type of returned value of BPy_directedViewEdge_from_directedViewEdge()
from list to tuple.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp 2009-08-01 17:50:51 UTC (rev 22122)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp 2009-08-01 18:03:43 UTC (rev 22123)
@@ -289,10 +289,10 @@
}
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;
}
More information about the Bf-blender-cvs
mailing list