Blender Git Loki

Git Commits -> Revision e44c49d

Revision e44c49d by Bastien Montagne (master)
September 6, 2014, 12:58 (GMT)
Py Mathutils: add `invert_safe()` and `inverted_safe()` to `Matrix`.

Those two mimic our BLI invert_m4_m4_safe - they add a small offset to diagonal values,
in case org matrix is degenerated, and if still non-invertible, return identity matrix.

Org patch by me, final enhanced version by ideasman42, many thanks!

Commit Details:

Full Hash: e44c49d89d67038657cdcbd373e64b9a17b6c993
Parent Commit: f670a8a
Lines Changed: +191, -48

3 Modified Paths:

/source/blender/python/mathutils/mathutils_Matrix.c (+167, -48) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.h (+1, -0) (Diff)
/tests/python/bl_pyapi_mathutils.py (+23, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021