viral-viewer-2 3.0.1 → 3.0.3
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.
|
@@ -34165,8 +34165,13 @@ function workerFunction() {
|
|
|
34165
34165
|
}
|
|
34166
34166
|
childMesh.instanceMatrix.needsUpdate = true;
|
|
34167
34167
|
childMesh.updateMatrix();
|
|
34168
|
-
childMesh.isInstancedMesh = true;
|
|
34169
34168
|
let jsonData = childMesh.toJSON();
|
|
34169
|
+
jsonData.object.type = "InstancedMesh";
|
|
34170
|
+
jsonData.object.count = childMesh.count;
|
|
34171
|
+
jsonData.object.instanceMatrix = childMesh.instanceMatrix.toJSON();
|
|
34172
|
+
if (this.instanceColor !== null)
|
|
34173
|
+
jsonData.object.instanceColor = childMesh.instanceColor.toJSON();
|
|
34174
|
+
console.log(jsonData);
|
|
34170
34175
|
self.postMessage(jsonData);
|
|
34171
34176
|
}
|
|
34172
34177
|
else {
|