viral-viewer-2 3.0.7 → 3.0.9

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.
@@ -33774,7 +33774,7 @@ function workerFunction() {
33774
33774
  let nextVertex;
33775
33775
  let z = count;
33776
33776
  if (count > vertices.length) {
33777
- z = length;
33777
+ z = vertices.length;
33778
33778
  }
33779
33779
  while (z--) {
33780
33780
  nextVertex = minimumCostEdge(vertices);
@@ -34114,7 +34114,7 @@ function workerFunction() {
34114
34114
  else {
34115
34115
  geometry = dummyGeometry;
34116
34116
  }
34117
- const childMesh = new InstancedMesh(geometry, null, event.data.Instances.length);
34117
+ const childMesh = new InstancedMesh(geometry, new MeshBasicMaterial(), event.data.Instances.length);
34118
34118
  childMesh.castShadow = true;
34119
34119
  childMesh.receiveShadow = true;
34120
34120
  for (let index = 0; index < event.data.Instances.length; index++) {
@@ -34162,6 +34162,7 @@ function workerFunction() {
34162
34162
  }
34163
34163
  // childMesh.instanceMatrix.needsUpdate = true;
34164
34164
  childMesh.updateMatrix();
34165
+ childMesh.uuid;
34165
34166
  let jsonData = childMesh.toJSON();
34166
34167
  // jsonData.object.type = "InstancedMesh";
34167
34168
  // jsonData.object.count = childMesh.count;