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>2020-02-20 07:09:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-20 07:17:22 +0300
commit1e3ffd1f872b1a52a5c392b135c29ae71744137d (patch)
tree572b8c4a4cbe1a99e5ebcd05bd947ebec4189d98 /source/blender/python/mathutils/mathutils_Vector.c
parentbc86eb1780a8793e5c511073eb20d5f6e7fd2e0b (diff)
mathutils: support for to_2x2 as well as non-square matrices
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Vector.c')
-rw-r--r--source/blender/python/mathutils/mathutils_Vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c
index 82c4e70b657..b9befee9f22 100644
--- a/source/blender/python/mathutils/mathutils_Vector.c
+++ b/source/blender/python/mathutils/mathutils_Vector.c
@@ -3236,14 +3236,14 @@ PyObject *Vector_CreatePyObject_cb(PyObject *cb_user,
}
/**
- * \param vec: Initialized vector value to use in-place, allocated with: PyMem_Malloc
+ * \param vec: Initialized vector value to use in-place, allocated with #PyMem_Malloc
*/
PyObject *Vector_CreatePyObject_alloc(float *vec, const int size, PyTypeObject *base_type)
{
VectorObject *self;
self = (VectorObject *)Vector_CreatePyObject_wrap(vec, size, base_type);
if (self) {
- self->flag = BASE_MATH_FLAG_DEFAULT;
+ self->flag &= ~BASE_MATH_FLAG_IS_WRAP;
}
return (PyObject *)self;