viral-viewer-2 4.2.6 → 4.2.8
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.
|
@@ -34050,7 +34050,7 @@ which can be placed in CurveUtils.
|
|
|
34050
34050
|
dummyGeometry.setAttribute("position", new BufferAttribute(buffer, 3));
|
|
34051
34051
|
let geometry = new BufferGeometry();
|
|
34052
34052
|
geometry = mergeVertices(dummyGeometry);
|
|
34053
|
-
geometry.computeVertexNormals();
|
|
34053
|
+
// geometry.computeVertexNormals();
|
|
34054
34054
|
const mesh = new Mesh(geometry);
|
|
34055
34055
|
mesh.userData.MaterialId = element.MaterialIndex;
|
|
34056
34056
|
result.push(mesh);
|
|
@@ -34090,12 +34090,11 @@ which can be placed in CurveUtils.
|
|
|
34090
34090
|
cloneMesh.applyMatrix4(matrix4);
|
|
34091
34091
|
// cloneMesh.setMatrixAt(index, matrix4);
|
|
34092
34092
|
// cloneMesh.setColorAt(index, new Color());
|
|
34093
|
-
|
|
34093
|
+
cloneMesh.updateMatrix();
|
|
34094
34094
|
instanceGroup.add(cloneMesh);
|
|
34095
34095
|
}
|
|
34096
34096
|
// childMesh.instanceMatrix.needsUpdate = true;
|
|
34097
34097
|
instanceGroup.userData.IsInstancedMesh = true;
|
|
34098
|
-
instanceGroup.updateMatrix();
|
|
34099
34098
|
let jsonData = instanceGroup.toJSON();
|
|
34100
34099
|
self.postMessage(jsonData);
|
|
34101
34100
|
}
|