viral-viewer-2 4.0.9 → 4.1.1
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.
|
@@ -34114,7 +34114,7 @@ which can be placed in CurveUtils.
|
|
|
34114
34114
|
}
|
|
34115
34115
|
else {
|
|
34116
34116
|
let geometry = new BufferGeometry();
|
|
34117
|
-
if (event.data.Instances.length == 1) {
|
|
34117
|
+
if (event.data.Instances && event.data.Instances.length == 1) {
|
|
34118
34118
|
const transform = event.data.Instances[0];
|
|
34119
34119
|
let numbers = [
|
|
34120
34120
|
transform.BasisX.X, -transform.BasisX.Z, -transform.BasisX.Y,
|
|
@@ -34162,6 +34162,7 @@ which can be placed in CurveUtils.
|
|
|
34162
34162
|
childMesh.add(line);
|
|
34163
34163
|
childMesh.castShadow = true;
|
|
34164
34164
|
childMesh.receiveShadow = true;
|
|
34165
|
+
childMesh.updateMatrix();
|
|
34165
34166
|
let jsonData = childMesh.toJSON();
|
|
34166
34167
|
self.postMessage(jsonData);
|
|
34167
34168
|
}
|