|
@@ -19497,6 +19497,9 @@ var BABYLON;
|
|
|
var max = new BABYLON.Vector3(-Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MAX_VALUE);
|
|
|
for (var index = 0; index < this.meshes.length; index++) {
|
|
|
var mesh = this.meshes[index];
|
|
|
+ if (!mesh.subMeshes || mesh.subMeshes.length === 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
mesh.computeWorldMatrix(true);
|
|
|
var minBox = mesh.getBoundingInfo().boundingBox.minimumWorld;
|
|
|
var maxBox = mesh.getBoundingInfo().boundingBox.maximumWorld;
|