瀏覽代碼

Merge pull request #714 from jbousquie/fix.CreateXXX.optionable

fix : the pathArray isn't optional in CreateRibbon
Raanan Weber 10 年之前
父節點
當前提交
2da56af020
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Mesh/babylon.mesh.vertexData.ts

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

@@ -381,7 +381,7 @@
             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 closeArray: boolean = options.closeArray || false;
             var closePath: boolean = options.closePath || false;