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

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

@@ -78,7 +78,7 @@ module BABYLON {
         // Methods
         /** @hidden */
         public _update(worldMatrix: Matrix): void {
-            if (worldMatrix !== BoundingSphere._identityMatrix) {
+            if (!worldMatrix.isIdentity()) {
                 Vector3.TransformCoordinatesToRef(this.center, worldMatrix, this.centerWorld);
                 const tempVector = BoundingSphere.TmpVector3[0];
                 Vector3.TransformNormalFromFloatsToRef(1.0, 1.0, 1.0, worldMatrix, tempVector);