瀏覽代碼

Undo redundant changes

Temdog007 6 年之前
父節點
當前提交
d67ac1dc16
共有 2 個文件被更改,包括 0 次插入24 次删除
  1. 0 9
      src/geometries/TubeGeometry.js
  2. 0 15
      src/loaders/ObjectLoader.js

+ 0 - 9
src/geometries/TubeGeometry.js

@@ -219,14 +219,5 @@ function TubeBufferGeometry( path, tubularSegments, radius, radialSegments, clos
 TubeBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
 TubeBufferGeometry.prototype.constructor = TubeBufferGeometry;
 
-TubeBufferGeometry.prototype.toJSON = function () {
-
-	var data = BufferGeometry.prototype.toJSON.call( this );
-
-	data.path = this.parameters.path.toJSON();
-
-	return data;
-
-};
 
 export { TubeGeometry, TubeBufferGeometry };

+ 0 - 15
src/loaders/ObjectLoader.js

@@ -341,21 +341,6 @@ Object.assign( ObjectLoader.prototype, {
 
 						break;
 
-					case 'TubeGeometry':
-					case 'TubeBufferGeometry':
-
-						// This only works for built-in curves (e.g. CatmullRomCurve3).
-						// User defined curves or instances of CurvePath will not be deserialized.
-						geometry = new Geometries[ data.type ](
-							new Curves[ data.path.type ]().fromJSON( data.path ),
-							data.tubularSegments,
-							data.radius,
-							data.radialSegments,
-							data.closed
-						);
-
-						break;
-
 					case 'LatheGeometry':
 					case 'LatheBufferGeometry':