bugfix + minor mathutils.Vector edits.

- multiplying a 2D vector by a 3x3 or 4x4 matrix would use un-initialized memory, now throw an exception.
- use more variable length array BLI_math functions.
This commit is contained in:
2011-01-23 08:37:34 +00:00
parent a877155a7c
commit 552b36733b
4 changed files with 67 additions and 88 deletions

View File

@@ -43,7 +43,7 @@ typedef struct {
} VectorObject;
/*prototypes*/
PyObject *newVectorObject(float *vec, int size, int type, PyTypeObject *base_type);
PyObject *newVectorObject(float *vec, const int size, const int type, PyTypeObject *base_type);
PyObject *newVectorObject_cb(PyObject *user, int size, int callback_type, int subtype);
#endif /* MATHUTILS_VECTOR_H */