diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-06-23 00:14:11 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-06-23 00:14:11 +0400 |
commit | 61e41f6817b0dfd3ce17ffa3d00e4600e66251d1 (patch) | |
tree | d95a1b9b0e212acf14238c4510fcafdd18c01858 /source/blender/python/api2_2x/vector.c | |
parent | ab9e15b75d5297ee54d0ead5e99b8a55760545e6 (diff) |
* Added matrix module
* Moved the function EXPP_tuple_repr from vector.c to gen_utils.[ch]
* Matrix functionality should work now in Object module.
* Fixed compilation warning about implicit declaration of M_World_Init.
Added the declaration to modules.h
Diffstat (limited to 'source/blender/python/api2_2x/vector.c')
-rw-r--r-- | source/blender/python/api2_2x/vector.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/python/api2_2x/vector.c b/source/blender/python/api2_2x/vector.c index 14c663434ba..fac409ab92f 100644 --- a/source/blender/python/api2_2x/vector.c +++ b/source/blender/python/api2_2x/vector.c @@ -144,37 +144,6 @@ static int Vector_ass_slice(VectorObject *self, int begin, int end, PyObject *se return 0; } -PyObject *EXPP_tuple_repr(PyObject *self, int size) -{ - PyObject *repr, *comma, *item; - int i; - -/*@ note: a value must be built because the list is decrefed! - * otherwise we have nirvana pointers inside python.. */ - - repr = PyString_FromString("("); - if (!repr) return 0; - - item = PySequence_GetItem(self, 0); - PyString_ConcatAndDel(&repr, PyObject_Repr(item)); - Py_DECREF(item); - - comma = PyString_FromString(", "); - - for (i = 1; i < size; i++) { - PyString_Concat(&repr, comma); - item = PySequence_GetItem(self, i); - PyString_ConcatAndDel(&repr, PyObject_Repr(item)); - Py_DECREF(item); - } - - PyString_ConcatAndDel(&repr, PyString_FromString(")")); - Py_DECREF(comma); - - return repr; - -} - static PyObject *Vector_repr (VectorObject *self) { return EXPP_tuple_repr((PyObject *) self, self->size); |