@@ -219,5 +219,13 @@ 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 };