Browse Source

Examples: Improved webgl_lines_dashed.html

Mugen87 7 years ago
parent
commit
e463b8cb70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/webgl_lines_dashed.html

+ 1 - 1
examples/webgl_lines_dashed.html

@@ -66,7 +66,7 @@
 				var spline = new THREE.CatmullRomCurve3( points );
 
 				var samples = spline.getPoints( points.length * subdivisions );
-				var geometrySpline = new THREE.BufferGeometry().setFromPoints( samples );
+				var geometrySpline = new THREE.Geometry().setFromPoints( samples );
 
 				var line = new THREE.Line( geometrySpline, new THREE.LineDashedMaterial( { color: 0xffffff, dashSize: 1, gapSize: 0.5 } ) );
 				line.computeLineDistances();