Browse Source

updated VertexData.CreateLines : now supports only the single options parameter (breaking change)

jbousquie 10 years ago
parent
commit
d556b93310
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Mesh/babylon.mesh.vertexData.ts

+ 3 - 2
src/Mesh/babylon.mesh.vertexData.ts

@@ -937,10 +937,11 @@
             return vertexData;
         }
 
-        public static CreateLines(points: Vector3[]): VertexData {
+        public static CreateLines(options: { points: Vector3[]}): VertexData {
             var indices = [];
             var positions = [];
-
+            var points = options.points;
+            
             for (var index = 0; index < points.length; index++) {
                 positions.push(points[index].x, points[index].y, points[index].z);