* Consitency between Matrix4f.invertLocal() and Matrix3f.invertLocal(): Now both of them compare determinant to 0 to check if inversion is possible. This fixes an issue with no lighting when a really small scale is applied to scene objects

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8168 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 71cb644853
commit d614244f0f
  1. 2
      engine/src/core/com/jme3/math/Matrix3f.java

@ -987,7 +987,7 @@ public final class Matrix3f implements Savable, Cloneable, java.io.Serializable
*/
public Matrix3f invertLocal() {
float det = determinant();
if (FastMath.abs(det) <= FastMath.FLT_EPSILON) {
if (FastMath.abs(det) <= 0f) {
return zero();
}

Loading…
Cancel
Save