Browse Source

use object.freeze

Julien Barrois 6 năm trước cách đây
mục cha
commit
2fe1c70961
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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