viral-viewer-2 3.0.5 → 3.0.6
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.
|
@@ -34101,7 +34101,7 @@ function workerFunction() {
|
|
|
34101
34101
|
const dummyGeometry = new BufferGeometry();
|
|
34102
34102
|
dummyGeometry.setAttribute("position", new BufferAttribute(buffer, 3));
|
|
34103
34103
|
dummyGeometry.computeVertexNormals();
|
|
34104
|
-
if (event.data.Instances > 0) {
|
|
34104
|
+
if (event.data.Instances.length > 0) {
|
|
34105
34105
|
let geometry = new BufferGeometry();
|
|
34106
34106
|
// In case number of polygon larger than expect, merge them to reduce polygon first, for optimize purpose
|
|
34107
34107
|
if (dummyGeometry.attributes.position.count > maxPolygonPerObject) {
|