浏览代码

Reverted CubeGeometry Three.Legacy move.

Mr.doob 9 年之前
父节点
当前提交
b7a28d302e
共有 2 个文件被更改,包括 2 次插入1 次删除
  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, {
-	CubeGeometry: THREE.BoxGeometry,
 	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 );

+ 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.constructor = THREE.BoxGeometry;
+
+THREE.CubeGeometry = THREE.BoxGeometry;