瀏覽代碼

missing optional paramter

David Catuhe 8 年之前
父節點
當前提交
47ad35afc7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Materials/babylon.material.ts

+ 1 - 1
src/Materials/babylon.material.ts

@@ -505,7 +505,7 @@
         }
 
         // Force shader compilation including textures ready check
-        public forceCompilation(mesh: AbstractMesh, onCompiled: (material: Material) => void, options: { alphaTest: boolean }): void {
+        public forceCompilation(mesh: AbstractMesh, onCompiled: (material: Material) => void, options?: { alphaTest: boolean }): void {
             var subMesh = new BaseSubMesh();
             var scene = this.getScene();
             var engine = scene.getEngine();