Browse Source

fix : the pathArray isn't optional in CreateRibbon

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

+ 1 - 1
src/Mesh/babylon.mesh.vertexData.ts

@@ -381,7 +381,7 @@
             return result;
             return result;
         }
         }
 
 
-        public static CreateRibbon(options: { pathArray?: Vector3[][], closeArray?: boolean, closePath?: boolean, offset?: number, sideOrientation?: number }): VertexData {
+        public static CreateRibbon(options: { pathArray: Vector3[][], closeArray?: boolean, closePath?: boolean, offset?: number, sideOrientation?: number }): VertexData {
             var pathArray:Vector3[][] = options.pathArray;
             var pathArray:Vector3[][] = options.pathArray;
             var closeArray: boolean = options.closeArray || false;
             var closeArray: boolean = options.closeArray || false;
             var closePath: boolean = options.closePath || false;
             var closePath: boolean = options.closePath || false;