Explorar el Código

Matrix3.getInverse: Added compatibility check.

tschw hace 9 años
padre
commit
6989a8d4e6
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      src/math/Matrix3.js

+ 6 - 0
src/math/Matrix3.js

@@ -153,6 +153,12 @@ THREE.Matrix3.prototype = {
 
 	getInverse: function ( matrix, throwOnDegenerate ) {
 
+		if ( matrix instanceof THREE.Matrix4 ) {
+
+			console.warn( "THREE.Matrix3.getInverse no longer takes a Matrix4 argument." );
+
+		}
+
 		var me = matrix.elements,
 			te = this.elements,