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-26 04:05:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-26 04:05:41 +0400
commit986e62f3b6f03dda88149b1e8a8f301a4d24ab78 (patch)
tree5810aa4a87275bf2a13c09d51d175fb9451de61b /source/blender/python/mathutils/mathutils_Matrix.h
parent02d72b5c076f4ae1b47da74fe7a60a916edad9f2 (diff)
fix for a bug in mathutils when a vector was accessing a matrix and the matrix size increased, future access too the vector would write past the allocated bounds. now raise an exception.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Matrix.h')
-rw-r--r--source/blender/python/mathutils/mathutils_Matrix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.h b/source/blender/python/mathutils/mathutils_Matrix.h
index 7602f98dea4..2ecbc55da35 100644
--- a/source/blender/python/mathutils/mathutils_Matrix.h
+++ b/source/blender/python/mathutils/mathutils_Matrix.h
@@ -75,8 +75,11 @@ PyObject *Matrix_CreatePyObject_cb(PyObject *user,
extern int mathutils_matrix_row_cb_index; /* default */
extern int mathutils_matrix_col_cb_index;
+extern int mathutils_matrix_translation_cb_index;
+
extern struct Mathutils_Callback mathutils_matrix_row_cb; /* default */
extern struct Mathutils_Callback mathutils_matrix_col_cb;
+extern struct Mathutils_Callback mathutils_matrix_translation_cb;
void matrix_as_3x3(float mat[3][3], MatrixObject *self);