@mml-io/3d-web-client-core 0.0.0-experimental-9545514-20231127 → 0.0.0-experimental-22f0c83-20231128

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/build/index.js CHANGED
@@ -4672,13 +4672,13 @@ var CollisionsManager = class {
4672
4672
  group.updateWorldMatrix(true, false);
4673
4673
  const invertedRootMatrix = this.tempMatrix.copy(group.matrixWorld).invert();
4674
4674
  group.traverse((child) => {
4675
- if (child.type === "Mesh") {
4676
- const mesh = child;
4677
- const clonedGeometry = mesh.geometry.clone();
4675
+ const asMesh = child;
4676
+ if (asMesh.isMesh) {
4677
+ const clonedGeometry = asMesh.geometry.clone();
4678
4678
  if (child !== group) {
4679
- mesh.updateWorldMatrix(true, false);
4679
+ asMesh.updateWorldMatrix(true, false);
4680
4680
  clonedGeometry.applyMatrix4(
4681
- this.tempMatrix2.multiplyMatrices(invertedRootMatrix, mesh.matrixWorld)
4681
+ this.tempMatrix2.multiplyMatrices(invertedRootMatrix, asMesh.matrixWorld)
4682
4682
  );
4683
4683
  }
4684
4684
  for (const key in clonedGeometry.attributes) {