repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 3b5f5d30cbd871385b58e32edce53fe14127dcdd:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 3b5f5d30cbd871385b58e32edce53fe14127dcdd
Author: James Baicoianu 
Date:   Mon Sep 20 12:50:57 2021 -0700

    Removed THREE.Geometry reference

diff --git a/scripts/janusparticle.js b/scripts/janusparticle.js
index 0991b7509c9726f3745a29764edd2fa2602db690..
index ..d803b53ef08b00b1b311dec1d16a5b1ebc5dcd58 100644
--- a/scripts/janusparticle.js
+++ b/scripts/janusparticle.js
@@ -461,8 +461,7 @@ elation.require(['janusweb.janusbase'], function() {
         mesh.traverse(function(n) {
           if (n && n.geometry) {
             var geo = n.geometry;
-            if (geo instanceof THREE.Geometry) {
-            } else if (geo instanceof THREE.BufferGeometry) {
+            if (geo instanceof THREE.BufferGeometry) {
               var positions = geo.attributes.position.array;
               for (var i = 0; i < positions.length; i += 3) {
                 vertices.push(new THREE.Vector3(positions[i] * scale.x, positions[i+1] * scale.y, positions[i+2] * scale.z));

-----END OF PAGE-----