Browse Source

fix isIdentity()

Nicolas Cannasse 4 years ago
parent
commit
0eb5be565f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      h3d/Matrix.hx

+ 3 - 3
h3d/Matrix.hx

@@ -71,11 +71,11 @@ class Matrix {
 			return false;
 			return false;
 		if( _11 != 1 || _22 != 1 || _33 != 1 )
 		if( _11 != 1 || _22 != 1 || _33 != 1 )
 			return false;
 			return false;
-		if( _12 != 0 || _13 != 0 || _14 == 0 )
+		if( _12 != 0 || _13 != 0 || _14 != 0 )
 			return false;
 			return false;
-		if( _21 != 0 || _23 != 0 || _24 == 0 )
+		if( _21 != 0 || _23 != 0 || _24 != 0 )
 			return false;
 			return false;
-		if( _31 != 0 || _32 != 0 || _34 == 0 )
+		if( _31 != 0 || _32 != 0 || _34 != 0 )
 			return false;
 			return false;
 		return _44 == 1;
 		return _44 == 1;
 	}
 	}