Browse Source

Matrix3.getInverse: Added compatibility check.

tschw 9 years ago
parent
commit
6989a8d4e6
1 changed files with 6 additions and 0 deletions
  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,