提交 d50b6979 编写于 作者: M Mr.doob

Merge pull request #7303 from AVGP/7301-tube-geometry-clone

Overwritten THREE.Geometry.clone for THREE.TubeGeometry to fix #7301
......@@ -138,6 +138,14 @@ THREE.TubeGeometry = function ( path, segments, radius, radialSegments, closed,
THREE.TubeGeometry.prototype = Object.create( THREE.Geometry.prototype );
THREE.TubeGeometry.prototype.constructor = THREE.TubeGeometry;
THREE.TubeGeometry.prototype.clone = function() {
return new this.constructor( this.parameters.path,
this.parameters.segments, this.parameters.radius, this.parameters.radialSegments,
this.parameters.closed, this.parameters.taper
);
};
THREE.TubeGeometry.NoTaper = function ( u ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册