Browse Source

Moved Face4 to Three.Legacy.

Mr.doob 9 years ago
parent
commit
766eea001c
3 changed files with 9 additions and 11 deletions
  1. 9 0
      src/Three.Legacy.js
  2. 0 10
      src/core/Face4.js
  3. 0 1
      utils/build/includes/common.json

+ 9 - 0
src/Three.Legacy.js

@@ -195,6 +195,15 @@ Object.defineProperties( THREE.Vector3.prototype, {
 
 //
 
+THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) {
+
+	console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
+	return new THREE.Face3( a, b, c, normal, color, materialIndex );
+
+};
+
+//
+
 Object.defineProperties( THREE.Object3D.prototype, {
 	eulerOrder: {
 		get: function () {

+ 0 - 10
src/core/Face4.js

@@ -1,10 +0,0 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
-THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) {
-
-	console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
-	return new THREE.Face3( a, b, c, normal, color, materialIndex );
-
-};

+ 0 - 1
utils/build/includes/common.json

@@ -29,7 +29,6 @@
 	"src/core/Raycaster.js",
 	"src/core/Object3D.js",
 	"src/core/Face3.js",
-	"src/core/Face4.js",
 	"src/core/BufferAttribute.js",
 	"src/core/InstancedBufferAttribute.js",
 	"src/core/InterleavedBuffer.js",