viral-viewer-2 3.0.1 → 3.0.2
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.
|
@@ -4841,6 +4841,9 @@ function workerFunction() {
|
|
|
4841
4841
|
constructor() {
|
|
4842
4842
|
super();
|
|
4843
4843
|
this.isObject3D = true;
|
|
4844
|
+
this.isInstancedMesh = false;
|
|
4845
|
+
this.instanceMatrix = new InstancedBufferAttribute(new Float32Array(count * 16), 16);
|
|
4846
|
+
this.instanceColor = null;
|
|
4844
4847
|
Object.defineProperty(this, "id", { value: _object3DId++ });
|
|
4845
4848
|
this.uuid = generateUUID();
|
|
4846
4849
|
this.name = "";
|
|
@@ -34165,8 +34168,8 @@ function workerFunction() {
|
|
|
34165
34168
|
}
|
|
34166
34169
|
childMesh.instanceMatrix.needsUpdate = true;
|
|
34167
34170
|
childMesh.updateMatrix();
|
|
34168
|
-
childMesh.isInstancedMesh = true;
|
|
34169
34171
|
let jsonData = childMesh.toJSON();
|
|
34172
|
+
console.log(jsonData);
|
|
34170
34173
|
self.postMessage(jsonData);
|
|
34171
34174
|
}
|
|
34172
34175
|
else {
|