Browse Source

Fixed canvas_geometry_shapes example.

Mr.doob 9 years ago
parent
commit
c25a5ac97d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/canvas_geometry_shapes.html

+ 2 - 0
examples/canvas_geometry_shapes.html

@@ -82,6 +82,8 @@
 					// line
 
 					var geometry = shape.createPointsGeometry();
+					geometry.vertices.push( geometry.vertices[ 0 ].clone() );
+
 					var material = new THREE.LineBasicMaterial( { linewidth: 10, color: 0x333333, transparent: true } );
 
 					var line = new THREE.Line( geometry, material );