Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-04 02:40:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-04 02:40:10 +0400
commit879602d4410a5ab656f330ffb6d1c2f200c933c7 (patch)
treed2f410a4c436211e56bd1f4e7653d0c7241d66a6 /source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
parent7e3e3a2270488a8bd5c447880bdc10bdb796c78b (diff)
Replaced PyTuple_SetItem by PyTuple_SET_ITEM when creating new tuples.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
index cd0131ad570..14e6f143b84 100644
--- a/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
+++ b/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
@@ -261,13 +261,13 @@ static PyObject *SVertex_curvatures( BPy_SVertex *self , PyObject *args) {
Vec3r e2(info->e2.x(), info->e2.y(), info->e2.z());
Vec3r er(info->er.x(), info->er.y(), info->er.z());
PyObject *retval = PyTuple_New(7);
- PyTuple_SetItem( retval, 0, PyFloat_FromDouble(info->K1));
- PyTuple_SetItem( retval, 2, Vector_from_Vec3r(e1));
- PyTuple_SetItem( retval, 1, PyFloat_FromDouble(info->K2));
- PyTuple_SetItem( retval, 3, Vector_from_Vec3r(e2));
- PyTuple_SetItem( retval, 4, PyFloat_FromDouble(info->Kr));
- PyTuple_SetItem( retval, 5, Vector_from_Vec3r(er));
- PyTuple_SetItem( retval, 6, PyFloat_FromDouble(info->dKr));
+ PyTuple_SET_ITEM( retval, 0, PyFloat_FromDouble(info->K1));
+ PyTuple_SET_ITEM( retval, 2, Vector_from_Vec3r(e1));
+ PyTuple_SET_ITEM( retval, 1, PyFloat_FromDouble(info->K2));
+ PyTuple_SET_ITEM( retval, 3, Vector_from_Vec3r(e2));
+ PyTuple_SET_ITEM( retval, 4, PyFloat_FromDouble(info->Kr));
+ PyTuple_SET_ITEM( retval, 5, Vector_from_Vec3r(er));
+ PyTuple_SET_ITEM( retval, 6, PyFloat_FromDouble(info->dKr));
return retval;
}