diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:09:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:17:22 +0300 |
commit | 1e3ffd1f872b1a52a5c392b135c29ae71744137d (patch) | |
tree | 572b8c4a4cbe1a99e5ebcd05bd947ebec4189d98 /source/blender/python/mathutils/mathutils_Matrix.h | |
parent | bc86eb1780a8793e5c511073eb20d5f6e7fd2e0b (diff) |
mathutils: support for to_2x2 as well as non-square matrices
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Matrix.h')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.h b/source/blender/python/mathutils/mathutils_Matrix.h index 6f2b5d4ac6d..abb023e576d 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.h +++ b/source/blender/python/mathutils/mathutils_Matrix.h @@ -74,6 +74,11 @@ PyObject *Matrix_CreatePyObject_cb(PyObject *user, unsigned char cb_type, unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT; +PyObject *Matrix_CreatePyObject_alloc(float *mat, + const unsigned short num_col, + const unsigned short num_row, + PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT; + /* PyArg_ParseTuple's "O&" formatting helpers. */ int Matrix_ParseAny(PyObject *o, void *p); int Matrix_Parse2x2(PyObject *o, void *p); |