Browse Source

* 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
sha..rd 14 years ago
parent
commit
d614244f0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/src/core/com/jme3/math/Matrix3f.java

+ 1 - 1
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();
         }