mathutils matrix initialization now matches other mathutils types.
(should have made this change along with the others). Matrix([1, 2], [3, 4]) --> Matrix(([1, 2], [3, 4])) This is so adding initialization args works right. Also simplify initialization code (re-use slice assignment).
This commit is contained in:
@@ -49,7 +49,7 @@ be stored in py_data) or be a wrapper for data allocated through
|
||||
blender (stored in blend_data). This is an either/or struct not both*/
|
||||
|
||||
/*prototypes*/
|
||||
PyObject *newMatrixObject(float *mat, int rowSize, int colSize, int type, PyTypeObject *base_type);
|
||||
PyObject *newMatrixObject(float *mat, const unsigned short rowSize, const unsigned short colSize, int type, PyTypeObject *base_type);
|
||||
PyObject *newMatrixObject_cb(PyObject *user, int rowSize, int colSize, int cb_type, int cb_subtype);
|
||||
|
||||
extern int mathutils_matrix_vector_cb_index;
|
||||
|
||||
Reference in New Issue
Block a user