浏览代码

use object.freeze

Julien Barrois 6 年之前
父节点
当前提交
2fe1c70961
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Culling/babylon.boundingBox.ts

+ 1 - 1
src/Culling/babylon.boundingBox.ts

@@ -1,6 +1,6 @@
 module BABYLON {
 
-    const _identityMatrix = Matrix.Identity();
+    const _identityMatrix = Object.freeze(Matrix.Identity());
 
     /**
      * Class used to store bounding box information