瀏覽代碼

Reverted Three.Legacy references.

Mr.doob 9 年之前
父節點
當前提交
f6faf8ac19
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 0 3
      src/Three.Legacy.js
  2. 2 0
      src/extras/geometries/BoxGeometry.js

+ 0 - 3
src/Three.Legacy.js

@@ -792,7 +792,4 @@ THREE.CanvasRenderer = function () {
 
 //
 
-THREE.Curve.Utils = THREE.CurveUtils;
-THREE.CubeGeometry = THREE.BoxGeometry;
 THREE.MeshFaceMaterial = THREE.MultiMaterial;
-THREE.Shape.Utils = THREE.ShapeUtils;

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

@@ -125,3 +125,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;