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);