Przeglądaj źródła

Move Vector3.applyProjection into Three.Legacy.js

Franklin Ta 8 lat temu
rodzic
commit
aa074e0869
2 zmienionych plików z 6 dodań i 8 usunięć
  1. 6 0
      src/Three.Legacy.js
  2. 0 8
      src/math/Vector3.js

+ 6 - 0
src/Three.Legacy.js

@@ -570,6 +570,12 @@ Object.assign( Vector3.prototype, {
 		console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
 		return this.setFromMatrixColumn( matrix, index );
 
+	},
+	applyProjection: function ( m ) {
+
+		console.warn( 'THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead.' );
+		return this.applyMatrix4( m );
+
 	}
 
 } );

+ 0 - 8
src/math/Vector3.js

@@ -310,14 +310,6 @@ Vector3.prototype = {
 
 	},
 
-	applyProjection: function ( m ) {
-
-		console.warn( 'THREE.Vector3: .applyProjection() is deprecated. Use .applyMatrix4( m ) instead.' );
-
-		return this.applyMatrix4( m );
-
-	},
-
 	applyQuaternion: function ( q ) {
 
 		var x = this.x, y = this.y, z = this.z;