|
@@ -904,14 +904,14 @@
|
|
for (var descendant of descendants) {
|
|
for (var descendant of descendants) {
|
|
let childMesh = <AbstractMesh>descendant;
|
|
let childMesh = <AbstractMesh>descendant;
|
|
|
|
|
|
|
|
+ childMesh.computeWorldMatrix(true);
|
|
|
|
+
|
|
//make sure we have the needed params to get mix and max
|
|
//make sure we have the needed params to get mix and max
|
|
if (!childMesh.getBoundingInfo || childMesh.getTotalVertices() === 0) {
|
|
if (!childMesh.getBoundingInfo || childMesh.getTotalVertices() === 0) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- childMesh.computeWorldMatrix(true);
|
|
|
|
let childBoundingInfo = childMesh.getBoundingInfo();
|
|
let childBoundingInfo = childMesh.getBoundingInfo();
|
|
-
|
|
|
|
let boundingBox = childBoundingInfo.boundingBox;
|
|
let boundingBox = childBoundingInfo.boundingBox;
|
|
|
|
|
|
var minBox = boundingBox.minimumWorld;
|
|
var minBox = boundingBox.minimumWorld;
|