You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since THREE.Geometry got deprecated, this section breaks
MeshLine.prototype.setGeometry=function(g,c){// as the input geometry are mutated we store them// for later retreival when necessary (declaritive architectures)this._geometry=g;if(ginstanceofTHREE.Geometry){this.setPoints(g.vertices,c);}elseif(ginstanceofTHREE.BufferGeometry){this.setPoints(g.getAttribute("position").array,c);}else{this.setPoints(g,c);}}
A simple removal of if (g instanceof THREE.Geometry) should resolve this issue.
The text was updated successfully, but these errors were encountered:
A simple workaround, for the users currently is to add the following code to their js files.
MeshLine.prototype.setGeometry=function(g,c){// as the input geometry are mutated we store them// for later retreival when necessary (declaritive architectures)this._geometry=g;if(ginstanceofTHREE.BufferGeometry){this.setPoints(g.getAttribute("position").array,c);}else{this.setPoints(g,c);}}
Since
THREE.Geometry
got deprecated, this section breaksA simple removal of
if (g instanceof THREE.Geometry)
should resolve this issue.The text was updated successfully, but these errors were encountered: