Przeglądaj źródła

Reverted CubeGeometry Three.Legacy move.

Mr.doob 9 lat temu
rodzic
commit
b7a28d302e
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 0 1
      src/Three.Legacy.js
  2. 2 0
      src/extras/geometries/BoxGeometry.js

+ 0 - 1
src/Three.Legacy.js

@@ -3,7 +3,6 @@
  */
  */
 
 
 Object.assign( THREE, {
 Object.assign( THREE, {
-	CubeGeometry: THREE.BoxGeometry,
 	Face4: function ( a, b, c, d, normal, color, materialIndex ) {
 	Face4: function ( a, b, c, d, normal, color, materialIndex ) {
 		console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
 		console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
 		return new THREE.Face3( a, b, c, normal, color, materialIndex );
 		return new THREE.Face3( a, b, c, normal, color, materialIndex );

+ 2 - 0
src/extras/geometries/BoxGeometry.js

@@ -25,3 +25,5 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
 
 
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );
 THREE.BoxGeometry.prototype.constructor = THREE.BoxGeometry;
 THREE.BoxGeometry.prototype.constructor = THREE.BoxGeometry;
+
+THREE.CubeGeometry = THREE.BoxGeometry;