diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 23:21:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 23:21:36 +0400 |
commit | 124c55fcc3e377a2a6340d7dd64af1e1659497bd (patch) | |
tree | 99723ee4be22a614dcf49e1bffbe264956a5bb8e /source/blender/python/generic/mathutils_matrix.c | |
parent | f9fbfd9297aba0b46d6942c53dee6617ef0d7312 (diff) |
remove redundant argument from mathutils callbacks
Diffstat (limited to 'source/blender/python/generic/mathutils_matrix.c')
-rw-r--r-- | source/blender/python/generic/mathutils_matrix.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/generic/mathutils_matrix.c b/source/blender/python/generic/mathutils_matrix.c index 041619e3be6..8bb46d8c966 100644 --- a/source/blender/python/generic/mathutils_matrix.c +++ b/source/blender/python/generic/mathutils_matrix.c @@ -43,7 +43,7 @@ static int mathutils_matrix_vector_check(BaseMathObject *bmo) return BaseMath_ReadCallback(self); } -static int mathutils_matrix_vector_get(BaseMathObject *bmo, int subtype, float *vec_from) +static int mathutils_matrix_vector_get(BaseMathObject *bmo, int subtype) { MatrixObject *self= (MatrixObject *)bmo->cb_user; int i; @@ -52,12 +52,12 @@ static int mathutils_matrix_vector_get(BaseMathObject *bmo, int subtype, float * return 0; for(i=0; i < self->colSize; i++) - vec_from[i]= self->matrix[subtype][i]; + bmo->data[i]= self->matrix[subtype][i]; return 1; } -static int mathutils_matrix_vector_set(BaseMathObject *bmo, int subtype, float *vec_to) +static int mathutils_matrix_vector_set(BaseMathObject *bmo, int subtype) { MatrixObject *self= (MatrixObject *)bmo->cb_user; int i; @@ -66,31 +66,31 @@ static int mathutils_matrix_vector_set(BaseMathObject *bmo, int subtype, float * return 0; for(i=0; i < self->colSize; i++) - self->matrix[subtype][i]= vec_to[i]; + self->matrix[subtype][i]= bmo->data[i]; BaseMath_WriteCallback(self); return 1; } -static int mathutils_matrix_vector_get_index(BaseMathObject *bmo, int subtype, float *vec_from, int index) +static int mathutils_matrix_vector_get_index(BaseMathObject *bmo, int subtype, int index) { MatrixObject *self= (MatrixObject *)bmo->cb_user; if(!BaseMath_ReadCallback(self)) return 0; - vec_from[index]= self->matrix[subtype][index]; + bmo->data[index]= self->matrix[subtype][index]; return 1; } -static int mathutils_matrix_vector_set_index(BaseMathObject *bmo, int subtype, float *vec_to, int index) +static int mathutils_matrix_vector_set_index(BaseMathObject *bmo, int subtype, int index) { MatrixObject *self= (MatrixObject *)bmo->cb_user; if(!BaseMath_ReadCallback(self)) return 0; - self->matrix[subtype][index]= vec_to[index]; + self->matrix[subtype][index]= bmo->data[index]; BaseMath_WriteCallback(self); return 1; |