* 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
This commit is contained in:
parent
71cb644853
commit
d614244f0f
@ -987,7 +987,7 @@ public final class Matrix3f implements Savable, Cloneable, java.io.Serializable
|
|||||||
*/
|
*/
|
||||||
public Matrix3f invertLocal() {
|
public Matrix3f invertLocal() {
|
||||||
float det = determinant();
|
float det = determinant();
|
||||||
if (FastMath.abs(det) <= FastMath.FLT_EPSILON) {
|
if (FastMath.abs(det) <= 0f) {
|
||||||
return zero();
|
return zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user