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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-30 10:43:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-30 10:43:17 +0400
commit5c8c1a7358bf2fbc2e7e08d5b5e64abec9b2feb8 (patch)
tree2e05f2924d69ebb10b2672944873ad841d2e2b62
parent0501ba5cc02f6126cc249a96015428259614bc02 (diff)
PyAPI - remove Matrix.row_size / col_size. these were rather awkwardly named, but its more clear to use len().
mat.col_size --> len(mat.row) mat.row_size --> len(mat.col)
-rw-r--r--source/blender/python/mathutils/mathutils_Matrix.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c
index c44443f0ed5..0e52d43b525 100644
--- a/source/blender/python/mathutils/mathutils_Matrix.c
+++ b/source/blender/python/mathutils/mathutils_Matrix.c
@@ -2075,22 +2075,6 @@ static PyNumberMethods Matrix_NumMethods = {
NULL, /* nb_index */
};
-PyDoc_STRVAR(Matrix_row_size_doc,
-"The row size of the matrix (readonly).\n\n:type: int"
-);
-static PyObject *Matrix_row_size_get(MatrixObject *self, void *UNUSED(closure))
-{
- return PyLong_FromLong((long) self->num_col);
-}
-
-PyDoc_STRVAR(Matrix_col_size_doc,
-"The column size of the matrix (readonly).\n\n:type: int"
-);
-static PyObject *Matrix_col_size_get(MatrixObject *self, void *UNUSED(closure))
-{
- return PyLong_FromLong((long) self->num_row);
-}
-
PyDoc_STRVAR(Matrix_translation_doc,
"The translation component of the matrix.\n\n:type: Vector"
);
@@ -2225,8 +2209,6 @@ static PyObject *Matrix_is_orthogonal_get(MatrixObject *self, void *UNUSED(closu
/* Python attributes get/set structure: */
/*****************************************************************************/
static PyGetSetDef Matrix_getseters[] = {
- {(char *)"row_size", (getter)Matrix_row_size_get, (setter)NULL, Matrix_row_size_doc, NULL},
- {(char *)"col_size", (getter)Matrix_col_size_get, (setter)NULL, Matrix_col_size_doc, NULL},
{(char *)"median_scale", (getter)Matrix_median_scale_get, (setter)NULL, Matrix_median_scale_doc, NULL},
{(char *)"translation", (getter)Matrix_translation_get, (setter)Matrix_translation_set, Matrix_translation_doc, NULL},
{(char *)"row", (getter)Matrix_row_get, (setter)NULL, Matrix_row_doc, NULL},