@xeokit/xeokit-sdk 2.4.2-beta-20 → 2.4.2-beta-21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.4.2-beta-20",
3
+ "version": "2.4.2-beta-21",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -306,10 +306,15 @@ export class SceneModelMesh {
306
306
  */
307
307
  get aabb() { // called by SceneModelEntity
308
308
  if (this._aabbDirty) {
309
- if (this.obb && this.transform) {
310
- math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
311
- math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
312
- math.OBB3ToAABB3(tempOBB3b, this._aabb);
309
+ if (this.obb) {
310
+ if (this.transform) {
311
+ math.transformOBB3(this.transform.worldMatrix, this.obb, tempOBB3);
312
+ math.transformOBB3(this.model.worldMatrix, tempOBB3, tempOBB3b);
313
+ math.OBB3ToAABB3(tempOBB3b, this._aabb);
314
+ } else {
315
+ math.transformOBB3(this.model.worldMatrix, this.obb, tempOBB3);
316
+ math.OBB3ToAABB3(tempOBB3, this._aabb);
317
+ }
313
318
  }
314
319
  this._aabbDirty = false;
315
320
  }