瀏覽代碼

make requestID optional

Trevor Baron 6 年之前
父節點
當前提交
fb95d131cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Tools/babylon.tools.ts

+ 1 - 1
src/Tools/babylon.tools.ts

@@ -16,7 +16,7 @@ module BABYLON {
          * You can pass this value to cancelAnimationFrame() to cancel the refresh callback request
          * @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#Return_value
          */
-        requestID: Nullable<number>;
+        requestID?: number;
     }
 
     /**