Blender Git Loki

Git Commits -> Revision 5a221dd

Revision 5a221dd by Andrew Hale (master)
February 2, 2012, 01:07 (GMT)
Fix for possible memory leak on creation of a vector using Vector.Range.
It was possible to allocate an array of size<2 which would then raise an error on vector creation without freeing.

Fix to ensure the behaviour of Vector.Range was the same as for builtin range() function. When specifying 3 arguments, the step argument wasn't being used to correctly calculate the vector size.

Minor formatting edits for error messages.

Commit Details:

Full Hash: 5a221dd0dea81fbe31f5e6431911288e8e3f4b53
SVN Revision: 43834
Parent Commit: ca927b5
Lines Changed: +16, -5

1 Modified Path:

/source/blender/python/mathutils/mathutils_Vector.c (+16, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021